@adaptabletools/adaptable 14.0.0-canary.2 → 14.0.0-canary.3
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/bundle.cjs.js +197 -197
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/Api/AdaptableApi.d.ts +12 -12
- package/src/Api/ColumnApi.d.ts +2 -10
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ColumnApiImpl.js +0 -8
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -1
- package/src/Api/Internal/AdaptableInternalApi.js +2 -1
- package/src/Api/Internal/ExportInternalApi.d.ts +8 -0
- package/src/Api/Internal/ExportInternalApi.js +51 -0
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +11 -0
- package/src/Api/Internal/FormatColumnInternalApi.js +10 -0
- package/src/Api/OptionsApi.d.ts +1 -1
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -0
- package/src/PredefinedConfig/SystemState.d.ts +3 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +26 -2
- package/src/Redux/Store/AdaptableStore.js +6 -0
- package/src/Strategy/AdaptableModuleBase.js +1 -1
- package/src/Strategy/AlertModule.js +1 -2
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +2 -4
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +8 -1
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +1 -2
- package/src/Strategy/FreeTextColumnModule.js +1 -2
- package/src/Strategy/LayoutModule.js +6 -6
- package/src/Strategy/SettingsPanelModule.js +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -2
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -4
- package/src/Utilities/Services/ChartingService.js +1 -1
- package/src/Utilities/Services/EntitlementService.js +4 -4
- package/src/Utilities/Services/Interface/IReportService.d.ts +7 -1
- package/src/Utilities/Services/QueryLanguageService.js +3 -3
- package/src/Utilities/Services/ReportService.d.ts +10 -2
- package/src/Utilities/Services/ReportService.js +40 -31
- package/src/Utilities/Services/TeamSharingService.js +3 -3
- package/src/Utilities/Services/ValidationService.js +6 -6
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +11 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +6 -27
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
- package/src/View/Components/EntityRulesEditor/Utilities.d.ts +2 -2
- package/src/View/Components/EntityRulesEditor/Utilities.js +19 -12
- package/src/View/Components/FilterForm/FilterForm.js +6 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +7 -9
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +1 -1
- package/src/View/Components/Popups/AdaptableToaster.js +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -2
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -2
- package/src/View/Dashboard/Dashboard.js +5 -5
- package/src/View/Dashboard/DashboardPopup.js +2 -3
- package/src/View/Dashboard/DashboardViewPanel.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +1 -2
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/Filter/FilterViewPanel.js +3 -3
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +5 -14
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +4 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +3 -3
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +9 -3
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +1 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -3
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +119 -38
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +7 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "14.0.0-canary.
|
|
3
|
+
"version": "14.0.0-canary.3",
|
|
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",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1671805663015;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -47,10 +47,6 @@ import { OptionsApi } from './OptionsApi';
|
|
|
47
47
|
* Has a huge number of classes each dedicated to a specific AdapTable Module or functionality
|
|
48
48
|
*/
|
|
49
49
|
export interface AdaptableApi {
|
|
50
|
-
/**
|
|
51
|
-
* Provides access to the Adaptable Options
|
|
52
|
-
*/
|
|
53
|
-
optionsApi: OptionsApi;
|
|
54
50
|
/**
|
|
55
51
|
* Provides access to Action Rows and Columns
|
|
56
52
|
*/
|
|
@@ -79,6 +75,10 @@ export interface AdaptableApi {
|
|
|
79
75
|
* Provides access to the Cell Summary Module
|
|
80
76
|
*/
|
|
81
77
|
cellSummaryApi: CellSummaryApi;
|
|
78
|
+
/**
|
|
79
|
+
* Provides run-time access to Charting Module and state
|
|
80
|
+
*/
|
|
81
|
+
chartingApi: ChartingApi;
|
|
82
82
|
/**
|
|
83
83
|
* Provides a number of column-related methods
|
|
84
84
|
*/
|
|
@@ -139,6 +139,10 @@ export interface AdaptableApi {
|
|
|
139
139
|
* Provides access to the Layout Module
|
|
140
140
|
*/
|
|
141
141
|
layoutApi: LayoutApi;
|
|
142
|
+
/**
|
|
143
|
+
* Provides access to Adaptable Options
|
|
144
|
+
*/
|
|
145
|
+
optionsApi: OptionsApi;
|
|
142
146
|
/**
|
|
143
147
|
* Provides access to the Plus Minus Module
|
|
144
148
|
*/
|
|
@@ -183,6 +187,10 @@ export interface AdaptableApi {
|
|
|
183
187
|
* Provides access to the Smart Edit Module
|
|
184
188
|
*/
|
|
185
189
|
smartEditApi: SmartEditApi;
|
|
190
|
+
/**
|
|
191
|
+
* Provides run-time access to the AdapTable Status Bar
|
|
192
|
+
*/
|
|
193
|
+
statusBarApi: StatusBarApi;
|
|
186
194
|
/**
|
|
187
195
|
* Provides access to the Styled Column Module
|
|
188
196
|
*/
|
|
@@ -207,14 +215,6 @@ export interface AdaptableApi {
|
|
|
207
215
|
* Manages User Interface Options where colours, styles and permitted values are configured
|
|
208
216
|
*/
|
|
209
217
|
userInterfaceApi: UserInterfaceApi;
|
|
210
|
-
/**
|
|
211
|
-
* Provides run-time access to Charting Module and state
|
|
212
|
-
*/
|
|
213
|
-
chartingApi: ChartingApi;
|
|
214
|
-
/**
|
|
215
|
-
* Provides run-time access to the AdapTable Status Bar
|
|
216
|
-
*/
|
|
217
|
-
statusBarApi: StatusBarApi;
|
|
218
218
|
/**
|
|
219
219
|
* Cleanup method - should be called only when using the vanilla javascript component, as framework components cleanup is performed when the component is destroyed/unmounted.
|
|
220
220
|
* This destroys the Adaptable instance.
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ import { AdaptableColumn, AdaptableColumnDataType, GridCell } from '../../types'
|
|
|
6
6
|
export interface ColumnApi {
|
|
7
7
|
/**
|
|
8
8
|
* Returns all Columns
|
|
9
|
-
|
|
9
|
+
*/
|
|
10
10
|
getColumns(): AdaptableColumn[];
|
|
11
11
|
/**
|
|
12
12
|
* Returns all visible Columns
|
|
13
|
-
|
|
13
|
+
*/
|
|
14
14
|
getVisibleColumns(): AdaptableColumn[];
|
|
15
15
|
/**
|
|
16
16
|
* Returns all numeric Columns
|
|
@@ -241,14 +241,6 @@ export interface ColumnApi {
|
|
|
241
241
|
* @deprecated internal method, will be removed in next major release
|
|
242
242
|
*/
|
|
243
243
|
getAgGridColumnType(columnId: string): string | string[];
|
|
244
|
-
/**
|
|
245
|
-
* @deprecated use `getFilterableColumns()` instead
|
|
246
|
-
*/
|
|
247
|
-
getFiltrableColumns(): AdaptableColumn[];
|
|
248
|
-
/**
|
|
249
|
-
* @deprecated us `getAggregatableColumns` instead
|
|
250
|
-
*/
|
|
251
|
-
getAggregetableColumns(): AdaptableColumn[];
|
|
252
244
|
/**
|
|
253
245
|
* @deprecated use `StyledColumnApi.hasPercentBarStyle()` or `StyledColumnApi.hasGradientStyle()` instead
|
|
254
246
|
*/
|
|
@@ -68,11 +68,9 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
68
68
|
getArrayColumns(): AdaptableColumn[];
|
|
69
69
|
getSortableColumns(): AdaptableColumn[];
|
|
70
70
|
getFilterableColumns(): AdaptableColumn[];
|
|
71
|
-
getFiltrableColumns(): AdaptableColumn[];
|
|
72
71
|
getGroupableColumns(): AdaptableColumn[];
|
|
73
72
|
getPivotableColumns(): AdaptableColumn[];
|
|
74
73
|
getAggregatableColumns(): AdaptableColumn[];
|
|
75
|
-
getAggregetableColumns(): AdaptableColumn[];
|
|
76
74
|
getQueryableColumns(): AdaptableColumn[];
|
|
77
75
|
private logMissingColumnWarning;
|
|
78
76
|
getDistinctDisplayValuesForColumn(columnId: string): any[];
|
|
@@ -355,10 +355,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
355
355
|
getFilterableColumns() {
|
|
356
356
|
return this.getColumns().filter((c) => c.filterable);
|
|
357
357
|
}
|
|
358
|
-
getFiltrableColumns() {
|
|
359
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getFiltrableColumns', 'getFilterableColumns');
|
|
360
|
-
return this.getFilterableColumns();
|
|
361
|
-
}
|
|
362
358
|
getGroupableColumns() {
|
|
363
359
|
return this.getColumns().filter((c) => c.groupable);
|
|
364
360
|
}
|
|
@@ -368,10 +364,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
368
364
|
getAggregatableColumns() {
|
|
369
365
|
return this.getColumns().filter((c) => c.aggregatable && c.dataType == 'Number');
|
|
370
366
|
}
|
|
371
|
-
getAggregetableColumns() {
|
|
372
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getAggregetableColumns', 'getAggregatableColumns');
|
|
373
|
-
return this.getAggregatableColumns();
|
|
374
|
-
}
|
|
375
367
|
getQueryableColumns() {
|
|
376
368
|
return this.getColumns().filter((c) => c.queryable);
|
|
377
369
|
}
|
|
@@ -86,7 +86,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
86
86
|
destroyFrameworkComponent(containerDomNode: HTMLElement, frameworkComponent: AdaptableFrameworkComponent, componentType: 'toolPanel' | 'toolbar'): void;
|
|
87
87
|
initializeDataChangeHistory(): void;
|
|
88
88
|
isTextComparisonCaseSensitive(): boolean;
|
|
89
|
-
executeWithProgressIndicator(label: string, executeFn: () => void): void;
|
|
89
|
+
executeWithProgressIndicator(label: string, executeFn: () => void, errorHandlingFn?: () => void): void;
|
|
90
90
|
hideProgressIndicator(): void;
|
|
91
91
|
getCorrectEnglishVariant(wordToSpell: string): string;
|
|
92
92
|
shouldDisplayTagSections(): boolean;
|
|
@@ -267,7 +267,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
267
267
|
isTextComparisonCaseSensitive() {
|
|
268
268
|
return this.adaptable.adaptableOptions.adaptableQLOptions.caseSensitiveTextComparisons;
|
|
269
269
|
}
|
|
270
|
-
executeWithProgressIndicator(label, executeFn) {
|
|
270
|
+
executeWithProgressIndicator(label, executeFn, errorHandlingFn) {
|
|
271
271
|
this.dispatchReduxAction((0, SystemRedux_1.SystemProgressIndicatorShow)(label));
|
|
272
272
|
// setTimeout required to give the ProgressIndicator rendering a head-start (see RAF in ProgressIndicator implementation)
|
|
273
273
|
setTimeout(() => {
|
|
@@ -275,6 +275,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
275
275
|
executeFn();
|
|
276
276
|
}
|
|
277
277
|
catch (error) {
|
|
278
|
+
errorHandlingFn === null || errorHandlingFn === void 0 ? void 0 : errorHandlingFn();
|
|
278
279
|
this.hideProgressIndicator();
|
|
279
280
|
(0, LoggingHelper_1.LogAdaptableError)('Unexpected error while executing a function with a progress indicator', error);
|
|
280
281
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
3
|
import { Report } from '../../PredefinedConfig/ExportState';
|
|
4
|
+
import { AdaptableColumnType } from '../../PredefinedConfig/Common/Types';
|
|
5
|
+
import { ExcelDataType } from '@ag-grid-community/core';
|
|
6
|
+
import { AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
7
|
+
import { DataFormatType } from '../../AdaptableOptions/ExportOptions';
|
|
4
8
|
export declare class ExportInternalApi extends ApiBase {
|
|
5
9
|
/**
|
|
6
10
|
* Whether given data change affects given report
|
|
@@ -8,4 +12,8 @@ export declare class ExportInternalApi extends ApiBase {
|
|
|
8
12
|
* @param report report to check
|
|
9
13
|
*/
|
|
10
14
|
isDataChangeInReport(cellDataChangedInfo: CellDataChangedInfo, report: Report): boolean;
|
|
15
|
+
getExcelDataType(adaptableColumnType: string | string[] | AdaptableColumnType | AdaptableColumnType[]): ExcelDataType;
|
|
16
|
+
isVisualDataExportInProgress(): boolean;
|
|
17
|
+
isDateCellExportedAsFormattedValue(): boolean;
|
|
18
|
+
getCellExportFormatType(columnDataType: AdaptableColumnDataType): DataFormatType;
|
|
11
19
|
}
|
|
@@ -69,5 +69,56 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
|
|
|
69
69
|
return this.adaptable.isRowNodeVisible(cellDataChangedInfo.rowNode);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
+
getExcelDataType(adaptableColumnType) {
|
|
73
|
+
const mapColumnTypeToExcelType = (columnType) => {
|
|
74
|
+
switch (columnType) {
|
|
75
|
+
case 'abColDefNumber':
|
|
76
|
+
return 'Number';
|
|
77
|
+
case 'abColDefBoolean':
|
|
78
|
+
return 'Boolean';
|
|
79
|
+
case 'abColDefDate':
|
|
80
|
+
return 'DateTime';
|
|
81
|
+
case 'abColDefString':
|
|
82
|
+
default:
|
|
83
|
+
return 'String';
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
if (Array.isArray(adaptableColumnType)) {
|
|
87
|
+
const validColumnType = adaptableColumnType.find((colType) => colType.startsWith('abColDef'));
|
|
88
|
+
if (!validColumnType) {
|
|
89
|
+
return 'String';
|
|
90
|
+
}
|
|
91
|
+
return mapColumnTypeToExcelType(validColumnType);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return mapColumnTypeToExcelType(adaptableColumnType);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
isVisualDataExportInProgress() {
|
|
98
|
+
return this.getAdaptableState().System.Export.inProgressVisualData;
|
|
99
|
+
}
|
|
100
|
+
isDateCellExportedAsFormattedValue() {
|
|
101
|
+
return (!!this.getExportOptions().exportDateFormat ||
|
|
102
|
+
this.getCellExportFormatType('Date') === 'formattedValue');
|
|
103
|
+
}
|
|
104
|
+
getCellExportFormatType(columnDataType) {
|
|
105
|
+
const exportOptions = this.getExportOptions();
|
|
106
|
+
if (exportOptions.exportFormatType === 'rawValue' ||
|
|
107
|
+
exportOptions.exportFormatType === 'formattedValue') {
|
|
108
|
+
return exportOptions.exportFormatType;
|
|
109
|
+
}
|
|
110
|
+
// format is customized based on column data type
|
|
111
|
+
switch (columnDataType) {
|
|
112
|
+
case 'String':
|
|
113
|
+
return exportOptions.exportFormatType.string;
|
|
114
|
+
case 'Number':
|
|
115
|
+
return exportOptions.exportFormatType.number;
|
|
116
|
+
case 'Date':
|
|
117
|
+
return exportOptions.exportFormatType.date;
|
|
118
|
+
default:
|
|
119
|
+
// default to rawValue for all other column types
|
|
120
|
+
return 'rawValue';
|
|
121
|
+
}
|
|
122
|
+
}
|
|
72
123
|
}
|
|
73
124
|
exports.ExportInternalApi = ExportInternalApi;
|
|
@@ -101,6 +101,17 @@ export declare class FormatColumnInternalApi extends ApiBase {
|
|
|
101
101
|
node: RowNode;
|
|
102
102
|
value: any;
|
|
103
103
|
}): FormatColumn[];
|
|
104
|
+
/**
|
|
105
|
+
* Extract from the given FormatColumns the one which is the most relevant for a given cell (intersection of given AdaptableColumn and RowNode)
|
|
106
|
+
*
|
|
107
|
+
* @param formatColumns
|
|
108
|
+
* @param column
|
|
109
|
+
* @param params
|
|
110
|
+
*/
|
|
111
|
+
getMostRelevantFormatColumnForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
|
|
112
|
+
node: RowNode;
|
|
113
|
+
value: any;
|
|
114
|
+
}): FormatColumn | undefined;
|
|
104
115
|
/**
|
|
105
116
|
* Retrieves all Format Columns which have an Expression
|
|
106
117
|
* @returns Format Columns with Expression
|
|
@@ -212,6 +212,16 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
212
212
|
getFormatColumnsRelevantForColumn(formatColumns, column, params) {
|
|
213
213
|
return formatColumns.filter((formatColumn) => this.isFormatColumnRelevantForColumn(formatColumn, column, params));
|
|
214
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Extract from the given FormatColumns the one which is the most relevant for a given cell (intersection of given AdaptableColumn and RowNode)
|
|
217
|
+
*
|
|
218
|
+
* @param formatColumns
|
|
219
|
+
* @param column
|
|
220
|
+
* @param params
|
|
221
|
+
*/
|
|
222
|
+
getMostRelevantFormatColumnForColumn(formatColumns, column, params) {
|
|
223
|
+
return formatColumns.find((formatColumn) => this.isFormatColumnRelevantForColumn(formatColumn, column, params));
|
|
224
|
+
}
|
|
215
225
|
/**
|
|
216
226
|
* Retrieves all Format Columns which have an Expression
|
|
217
227
|
* @returns Format Columns with Expression
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GridOptions } from '@ag-grid-community/core';
|
|
2
2
|
import { ActionOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, GeneralOptions, LayoutOptions, MenuOptions, NotificationsOptions, SearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
* Range of functions to access
|
|
4
|
+
* Range of functions to access Adaptable Options
|
|
5
5
|
*/
|
|
6
6
|
export interface OptionsApi {
|
|
7
7
|
/**
|
|
@@ -25,6 +25,10 @@ export interface FDC3Context {
|
|
|
25
25
|
id?: {
|
|
26
26
|
[key: string]: string | undefined;
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* Custom properties and metadata. This can be extended in specific context object.
|
|
30
|
+
*/
|
|
31
|
+
[key: string]: unknown;
|
|
28
32
|
}
|
|
29
33
|
/**
|
|
30
34
|
* FDC3 Context to define a financial Instrument
|
|
@@ -92,6 +92,9 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
|
|
|
92
92
|
* It will suppress the deletion confirmation dialog in the current session.
|
|
93
93
|
*/
|
|
94
94
|
DisableDeleteConfirmation: boolean;
|
|
95
|
+
Export: {
|
|
96
|
+
inProgressVisualData: boolean;
|
|
97
|
+
};
|
|
95
98
|
}
|
|
96
99
|
export interface ProgressIndicator {
|
|
97
100
|
active: boolean;
|
|
@@ -70,6 +70,8 @@ export declare const DASHBOARD_REFRESH = "DASHBOARD_REFRESH";
|
|
|
70
70
|
export declare const SYSTEM_DATA_SET_SELECT = "SYSTEM_DATA_SET_SELECT";
|
|
71
71
|
export declare const SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = "SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS";
|
|
72
72
|
export declare const SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = "SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX";
|
|
73
|
+
export declare const SYSTEM_VISUAL_EXPORT_BEGIN = "SYSTEM_VISUAL_EXPORT_BEGIN";
|
|
74
|
+
export declare const SYSTEM_VISUAL_EXPORT_END = "SYSTEM_VISUAL_EXPORT_END";
|
|
73
75
|
export interface SystemHighlightCellAddAction extends Redux.Action {
|
|
74
76
|
cellHighlightInfo: CellHighlightInfo;
|
|
75
77
|
}
|
|
@@ -239,6 +241,10 @@ export interface SystemSetPreviousGroupedColumnIndexAction extends Redux.Action
|
|
|
239
241
|
columnId: string;
|
|
240
242
|
columnIndex: number;
|
|
241
243
|
}
|
|
244
|
+
export interface SystemVisualExportBegin extends Redux.Action {
|
|
245
|
+
}
|
|
246
|
+
export interface SystemVisualExportEnd extends Redux.Action {
|
|
247
|
+
}
|
|
242
248
|
export declare const SystemHighlightCellAdd: (cellHighlightInfo: CellHighlightInfo) => SystemHighlightCellAddAction;
|
|
243
249
|
export declare const SystemHighlightCellDelete: (primaryKeyValue: CellHighlightInfo['primaryKeyValue'], columnId: CellHighlightInfo['columnId']) => SystemHighlightCellDeleteAction;
|
|
244
250
|
export declare const SystemHighlightCellDeleteAll: () => SystemHighlightCellDeleteAllAction;
|
|
@@ -292,6 +298,8 @@ export declare const SystemChartingSetCurrentChartModels: (chartModels: ChartMod
|
|
|
292
298
|
export declare const SystemChartingCurrentChartModelsSelector: (state: SystemState) => ChartModel[];
|
|
293
299
|
export declare const SystemSetPreviousGroupedColumnsIndex: (layoutId: string, columnId: string, columnIndex: number) => SystemSetPreviousGroupedColumnIndexAction;
|
|
294
300
|
export declare const SystemDisableDeleteConfirmation: () => SystemDisableDeleteConfirmation;
|
|
301
|
+
export declare const SystemVisualExportBegin: () => SystemVisualExportBegin;
|
|
302
|
+
export declare const SystemVisualExportEnd: () => SystemVisualExportEnd;
|
|
295
303
|
export declare const SystemDisableDeleteConfirmationSelector: (state: SystemState) => boolean;
|
|
296
304
|
export declare const SystemPreviousGroupedColumnsSelector: (state: SystemState) => Record<string, Record<string, number>>;
|
|
297
305
|
export declare const SystemReducer: Redux.Reducer<SystemState>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = void 0;
|
|
4
|
+
exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = void 0;
|
|
5
|
+
exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = void 0;
|
|
6
6
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
7
7
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
8
8
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
@@ -85,6 +85,9 @@ exports.SYSTEM_DATA_SET_SELECT = 'SYSTEM_DATA_SET_SELECT';
|
|
|
85
85
|
exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = 'SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS';
|
|
86
86
|
// Layout
|
|
87
87
|
exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = 'SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX';
|
|
88
|
+
// Data Export (Report)
|
|
89
|
+
exports.SYSTEM_VISUAL_EXPORT_BEGIN = 'SYSTEM_VISUAL_EXPORT_BEGIN';
|
|
90
|
+
exports.SYSTEM_VISUAL_EXPORT_END = 'SYSTEM_VISUAL_EXPORT_END';
|
|
88
91
|
const SystemHighlightCellAdd = (cellHighlightInfo) => ({
|
|
89
92
|
type: exports.SYSTEM_HIGHLIGHT_CELL_ADD,
|
|
90
93
|
cellHighlightInfo: cellHighlightInfo,
|
|
@@ -338,6 +341,14 @@ const SystemDisableDeleteConfirmation = () => ({
|
|
|
338
341
|
type: exports.SYSTEM_DISABLE_DELETE_CONFIRMATION,
|
|
339
342
|
});
|
|
340
343
|
exports.SystemDisableDeleteConfirmation = SystemDisableDeleteConfirmation;
|
|
344
|
+
const SystemVisualExportBegin = () => ({
|
|
345
|
+
type: exports.SYSTEM_VISUAL_EXPORT_BEGIN,
|
|
346
|
+
});
|
|
347
|
+
exports.SystemVisualExportBegin = SystemVisualExportBegin;
|
|
348
|
+
const SystemVisualExportEnd = () => ({
|
|
349
|
+
type: exports.SYSTEM_VISUAL_EXPORT_END,
|
|
350
|
+
});
|
|
351
|
+
exports.SystemVisualExportEnd = SystemVisualExportEnd;
|
|
341
352
|
const SystemDisableDeleteConfirmationSelector = (state) => {
|
|
342
353
|
return state.DisableDeleteConfirmation;
|
|
343
354
|
};
|
|
@@ -388,6 +399,9 @@ const initialState = {
|
|
|
388
399
|
previousGroupedColumns: {},
|
|
389
400
|
},
|
|
390
401
|
DisableDeleteConfirmation: false,
|
|
402
|
+
Export: {
|
|
403
|
+
inProgressVisualData: false,
|
|
404
|
+
},
|
|
391
405
|
};
|
|
392
406
|
const SystemReducer = (state = initialState, action) => {
|
|
393
407
|
let alerts;
|
|
@@ -708,6 +722,16 @@ const SystemReducer = (state = initialState, action) => {
|
|
|
708
722
|
case exports.SYSTEM_DISABLE_DELETE_CONFIRMATION: {
|
|
709
723
|
return Object.assign(Object.assign({}, state), { DisableDeleteConfirmation: true });
|
|
710
724
|
}
|
|
725
|
+
case exports.SYSTEM_VISUAL_EXPORT_BEGIN: {
|
|
726
|
+
return Object.assign(Object.assign({}, state), { Export: {
|
|
727
|
+
inProgressVisualData: true,
|
|
728
|
+
} });
|
|
729
|
+
}
|
|
730
|
+
case exports.SYSTEM_VISUAL_EXPORT_END: {
|
|
731
|
+
return Object.assign(Object.assign({}, state), { Export: {
|
|
732
|
+
inProgressVisualData: false,
|
|
733
|
+
} });
|
|
734
|
+
}
|
|
711
735
|
default:
|
|
712
736
|
return state;
|
|
713
737
|
}
|
|
@@ -1144,6 +1144,12 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
return next(action);
|
|
1146
1146
|
}
|
|
1147
|
+
case SystemRedux_1.SYSTEM_VISUAL_EXPORT_BEGIN:
|
|
1148
|
+
case SystemRedux_1.SYSTEM_VISUAL_EXPORT_END: {
|
|
1149
|
+
let returnAction = next(action);
|
|
1150
|
+
adaptable.ReportService.resetExcelStyleMemoization();
|
|
1151
|
+
return returnAction;
|
|
1152
|
+
}
|
|
1147
1153
|
/*******************
|
|
1148
1154
|
* TEAM SHARING ACTIONS
|
|
1149
1155
|
*******************/
|
|
@@ -244,7 +244,7 @@ class AdaptableModuleBase {
|
|
|
244
244
|
}
|
|
245
245
|
getFriendlyName(module, friendlyName) {
|
|
246
246
|
let returnValue = friendlyName;
|
|
247
|
-
let generalOptions = this.api.
|
|
247
|
+
let generalOptions = this.api.optionsApi.getGeneralOptions();
|
|
248
248
|
if (generalOptions && ArrayExtensions_1.default.IsNotNullOrEmpty(generalOptions.alternativeModuleNames)) {
|
|
249
249
|
generalOptions.alternativeModuleNames.forEach((af) => {
|
|
250
250
|
if (module == af.adaptableModule) {
|
|
@@ -29,8 +29,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
29
29
|
// do NOT handle reverted or aggregated changes
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
if (this.api.
|
|
33
|
-
'formattedValue') {
|
|
32
|
+
if (this.api.optionsApi.getAlertOptions().dataChangeDetectionPolicy === 'formattedValue') {
|
|
34
33
|
const { oldValue, newValue, rowNode } = cellDataChangedInfo;
|
|
35
34
|
const columnId = cellDataChangedInfo.column.columnId;
|
|
36
35
|
const oldFormattedValue = this.api.gridApi.getDisplayValueFromRawValue(rowNode, columnId, oldValue);
|
|
@@ -50,7 +50,7 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
50
50
|
if (this.api.dashboardApi.getDashboardState().IsFloating) {
|
|
51
51
|
menuItems.push(this.createColumnMenuItemReduxAction('Dock', 'dock', DashboardRedux.DashboardSetIsFloating(false)));
|
|
52
52
|
}
|
|
53
|
-
else if (this.api.
|
|
53
|
+
else if (this.api.optionsApi.getDashboardOptions().canFloat) {
|
|
54
54
|
menuItems.push(this.createColumnMenuItemReduxAction('Float', 'dock', DashboardRedux.DashboardSetIsFloating(true)));
|
|
55
55
|
}
|
|
56
56
|
if (this.api.dashboardApi.getDashboardState().IsHidden) {
|
|
@@ -42,10 +42,8 @@ class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase
|
|
|
42
42
|
if (this.api.internalApi.getState().System.DataChangeHistory.currentMode !== 'ACTIVE') {
|
|
43
43
|
return false;
|
|
44
44
|
}
|
|
45
|
-
if (this.api.
|
|
46
|
-
return this.api.
|
|
47
|
-
.getAdaptableOptions()
|
|
48
|
-
.dataChangeHistoryOptions.showDataChange(cellDataChangedInfo);
|
|
45
|
+
if (this.api.optionsApi.getDataChangeHistoryOptions().showDataChange) {
|
|
46
|
+
return this.api.optionsApi.getDataChangeHistoryOptions().showDataChange(cellDataChangedInfo);
|
|
49
47
|
}
|
|
50
48
|
return true;
|
|
51
49
|
}
|
|
@@ -21,7 +21,7 @@ class DataSetModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
21
21
|
}
|
|
22
22
|
getModuleAdaptableObjects() {
|
|
23
23
|
var _a, _b;
|
|
24
|
-
return (_b = (_a = this.api.
|
|
24
|
+
return (_b = (_a = this.api.optionsApi.getGeneralOptions()) === null || _a === void 0 ? void 0 : _a.dataSets) !== null && _b !== void 0 ? _b : [];
|
|
25
25
|
}
|
|
26
26
|
hasNamedQueryReferences() {
|
|
27
27
|
return false;
|
|
@@ -18,6 +18,7 @@ const getExportRowsViewItems_1 = require("./Utilities/Export/getExportRowsViewIt
|
|
|
18
18
|
const ReportExportDropdown_1 = require("../View/Export/ReportExportDropdown");
|
|
19
19
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
20
20
|
const ExportSelector_1 = require("../View/Export/ExportSelector");
|
|
21
|
+
const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
|
|
21
22
|
class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
22
23
|
constructor(api) {
|
|
23
24
|
super(ModuleConstants.ExportModuleId, ModuleConstants.ExportFriendlyName, 'export-data', 'ExportPopup', 'Export data from the Grid to numerous locations in numerous formatso', api);
|
|
@@ -68,10 +69,13 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
68
69
|
];
|
|
69
70
|
}
|
|
70
71
|
export(report, exportDestination) {
|
|
72
|
+
if (report.Name === GeneralConstants_1.VISUAL_DATA_REPORT) {
|
|
73
|
+
this.api.internalApi.dispatchReduxAction((0, SystemRedux_1.SystemVisualExportBegin)());
|
|
74
|
+
}
|
|
71
75
|
this.api.internalApi.executeWithProgressIndicator(`${report.Name} Export in progress...`, () => {
|
|
72
76
|
var _a;
|
|
73
77
|
if (this.isCustomDestination(exportDestination)) {
|
|
74
|
-
const customDestination = (_a = this.api.
|
|
78
|
+
const customDestination = (_a = this.api.optionsApi
|
|
75
79
|
.getAdaptableOptions()
|
|
76
80
|
.exportOptions.customDestinations) === null || _a === void 0 ? void 0 : _a.find((cd) => cd.name == exportDestination);
|
|
77
81
|
if (customDestination === null || customDestination === void 0 ? void 0 : customDestination.form) {
|
|
@@ -122,7 +126,10 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
122
126
|
break;
|
|
123
127
|
}
|
|
124
128
|
}
|
|
129
|
+
this.api.internalApi.dispatchReduxAction((0, SystemRedux_1.SystemVisualExportEnd)());
|
|
125
130
|
this.api.internalApi.hideProgressIndicator();
|
|
131
|
+
}, () => {
|
|
132
|
+
this.api.internalApi.dispatchReduxAction((0, SystemRedux_1.SystemVisualExportEnd)());
|
|
126
133
|
});
|
|
127
134
|
}
|
|
128
135
|
isCustomDestination(exportDestination) {
|
|
@@ -23,7 +23,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
25
25
|
handleAdaptableReady() {
|
|
26
|
-
if (this.api.
|
|
26
|
+
if (this.api.optionsApi.getFilterOptions().showQuickFilter == false) {
|
|
27
27
|
this.api.filterApi.hideQuickFilterBar();
|
|
28
28
|
}
|
|
29
29
|
const columnFilters = this.api.filterApi.getColumnFilters();
|
|
@@ -29,8 +29,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
29
29
|
}
|
|
30
30
|
// TODO: think about flashing row value only
|
|
31
31
|
// - flash for the underlying small data changes, but the visual does not
|
|
32
|
-
if (this.api.
|
|
33
|
-
'formattedValue') {
|
|
32
|
+
if (this.api.optionsApi.getAlertOptions().dataChangeDetectionPolicy === 'formattedValue') {
|
|
34
33
|
const { oldValue, newValue, rowNode } = cellDataChangedInfo;
|
|
35
34
|
const columnId = cellDataChangedInfo.column.columnId;
|
|
36
35
|
const oldFormattedValue = this.api.gridApi.getDisplayValueFromRawValue(rowNode, columnId, oldValue);
|
|
@@ -13,8 +13,7 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
13
13
|
}
|
|
14
14
|
isModuleAvailable() {
|
|
15
15
|
// FreeTextColumn module doesn't support autogenerated primary keys
|
|
16
|
-
return
|
|
17
|
-
!this.api.internalApi.getAdaptableOptions().autogeneratePrimaryKey);
|
|
16
|
+
return super.isModuleAvailable() && !this.api.optionsApi.getAutogeneratePrimaryKey();
|
|
18
17
|
}
|
|
19
18
|
getModuleAdaptableObjects() {
|
|
20
19
|
return this.api.freeTextColumnApi.getFreeTextColumns();
|
|
@@ -311,8 +311,8 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
311
311
|
return this.getModuleAdaptableObjects().map((layout) => this.toView(layout));
|
|
312
312
|
}
|
|
313
313
|
toView(layout) {
|
|
314
|
-
var _a, _b, _c, _d, _e, _f
|
|
315
|
-
const maxColumnsToDisplay = (
|
|
314
|
+
var _a, _b, _c, _d, _e, _f;
|
|
315
|
+
const maxColumnsToDisplay = (_b = (_a = this.api.optionsApi.getLayoutOptions().layoutViewOptions) === null || _a === void 0 ? void 0 : _a.maxColumnsToDisplay) !== null && _b !== void 0 ? _b : 10;
|
|
316
316
|
const columnIdToFriendlyName = (columnId) => {
|
|
317
317
|
return this.api.columnApi.getFriendlyNameForColumnId(columnId);
|
|
318
318
|
};
|
|
@@ -348,13 +348,13 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
348
348
|
name: 'Columns',
|
|
349
349
|
values: columns,
|
|
350
350
|
},
|
|
351
|
-
((
|
|
352
|
-
((
|
|
353
|
-
((
|
|
351
|
+
((_c = layout.ColumnSorts) === null || _c === void 0 ? void 0 : _c.length) && (0, getLayoutSortViewItems_1.getLayoutSortViewItems)(layout, this.api),
|
|
352
|
+
((_d = layout === null || layout === void 0 ? void 0 : layout.ColumnFilters) === null || _d === void 0 ? void 0 : _d.length) && (0, getLayoutFilterViewItems_1.getLayoutFilterViewItems)(layout, this.api),
|
|
353
|
+
((_e = layout === null || layout === void 0 ? void 0 : layout.RowGroupedColumns) === null || _e === void 0 ? void 0 : _e.length) && {
|
|
354
354
|
name: 'Grouped Columns',
|
|
355
355
|
values: layout.RowGroupedColumns.map((colId) => columnIdToFriendlyName(colId)),
|
|
356
356
|
},
|
|
357
|
-
((
|
|
357
|
+
((_f = layout === null || layout === void 0 ? void 0 : layout.PivotColumns) === null || _f === void 0 ? void 0 : _f.length) && {
|
|
358
358
|
name: 'Pivot Columns',
|
|
359
359
|
values: layout.PivotColumns.map((colId) => columnIdToFriendlyName(colId)),
|
|
360
360
|
},
|
|
@@ -7,7 +7,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
7
7
|
const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
|
|
8
8
|
class SettingsPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
9
9
|
constructor(api) {
|
|
10
|
-
const friendlyName = api.
|
|
10
|
+
const friendlyName = api.optionsApi.getSettingsPanelOptions().title;
|
|
11
11
|
super(ModuleConstants.SettingsPanelModuleId, friendlyName, 'settings', null, 'Manage all Adaptable Settings', api);
|
|
12
12
|
}
|
|
13
13
|
addColumnMenuItems(column) {
|
|
@@ -428,8 +428,7 @@ const getSlidingTimeframe$ = (source$, timeframeDuration, onTimeframeEnter, onTi
|
|
|
428
428
|
}));
|
|
429
429
|
};
|
|
430
430
|
const getMaxTimeframeSize = (expressionValue, context) => {
|
|
431
|
-
let maxTimeframeSize = context.adaptableApi.
|
|
432
|
-
.maxTimeframeSize;
|
|
431
|
+
let maxTimeframeSize = context.adaptableApi.optionsApi.getAdaptableQLOptions().expressionOptions.maxTimeframeSize;
|
|
433
432
|
if (maxTimeframeSize > SYSTEM_MAX_TIMEFRAME_SIZE) {
|
|
434
433
|
maxTimeframeSize = SYSTEM_MAX_TIMEFRAME_SIZE;
|
|
435
434
|
}
|
|
@@ -91,10 +91,8 @@ class CalculatedColumnExpressionService {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
if (calculatedColumnQuery.AggregatedScalarExpression) {
|
|
94
|
-
const validationResult = this.adaptableApi.
|
|
95
|
-
|
|
96
|
-
.validateAggregatedScalar(calculatedColumnQuery.AggregatedScalarExpression, ModuleConstants_1.CalculatedColumnModuleId);
|
|
97
|
-
return validationResult.isValid;
|
|
94
|
+
const validationResult = this.adaptableApi.queryLanguageApi.isValidAggregatedScalarExpression(calculatedColumnQuery.AggregatedScalarExpression, ModuleConstants_1.CalculatedColumnModuleId);
|
|
95
|
+
return validationResult;
|
|
98
96
|
}
|
|
99
97
|
// if query has neither a ScalarExpression nor an AggregatedScalarExpression => it can only be false
|
|
100
98
|
return false;
|