@adaptabletools/adaptable 14.0.0-canary.1 → 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 +149 -149
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/Api/AdaptableApi.d.ts +17 -9
- package/src/Api/ColumnApi.d.ts +2 -10
- package/src/Api/ConfigApi.d.ts +1 -5
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
- package/src/Api/Implementation/ApiBase.d.ts +6 -1
- package/src/Api/Implementation/ApiBase.js +15 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ColumnApiImpl.js +0 -8
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ConfigApiImpl.js +3 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +36 -0
- package/src/Api/Implementation/OptionsApiImpl.js +100 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +7 -1
- package/src/Api/Internal/AdaptableInternalApi.js +8 -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 +131 -0
- package/src/Api/OptionsApi.js +2 -0
- 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 +18 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { GridOptions } from '@ag-grid-community/core';
|
|
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
|
+
/**
|
|
4
|
+
* Range of functions to access Adaptable Options
|
|
5
|
+
*/
|
|
6
|
+
export interface OptionsApi {
|
|
7
|
+
/**
|
|
8
|
+
* Returns `AdaptableOptions.adaptableId`
|
|
9
|
+
*/
|
|
10
|
+
getAdaptableId(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Returns `AdaptableOptions.adaptableStateKey`
|
|
13
|
+
*/
|
|
14
|
+
getAdaptableStateKey(): string;
|
|
15
|
+
/**
|
|
16
|
+
* Returns `AdaptableOptions.autogeneratePrimaryKey`
|
|
17
|
+
*/
|
|
18
|
+
getAutogeneratePrimaryKey(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Returns `AdaptableOptions.gridOptions`
|
|
21
|
+
*/
|
|
22
|
+
getAgGridOptions(): GridOptions;
|
|
23
|
+
/**
|
|
24
|
+
* Returns `AdaptableOptions.licenseKey`
|
|
25
|
+
*/
|
|
26
|
+
getLicenseKey(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Returns `AdaptableOptions.primaryKey`
|
|
29
|
+
*/
|
|
30
|
+
getPrimaryKey(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Returns `AdaptableOptions.userName`
|
|
33
|
+
*/
|
|
34
|
+
getUserName(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Returns provided `AdaptableOptions`
|
|
37
|
+
*/
|
|
38
|
+
getAdaptableOptions(): AdaptableOptions;
|
|
39
|
+
/**
|
|
40
|
+
* Returns `AdaptableOptions.actionOptions`
|
|
41
|
+
*/
|
|
42
|
+
getActionOptions(): Readonly<ActionOptions>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns `AdaptableOptions.alertOptions`
|
|
45
|
+
*/
|
|
46
|
+
getAlertOptions(): Readonly<AlertOptions>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns `AdaptableOptions.adaptableQLOptions`
|
|
49
|
+
*/
|
|
50
|
+
getAdaptableQLOptions(): Readonly<AdaptableQLOptions>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns `AdaptableOptions.chartingOptions`
|
|
53
|
+
*/
|
|
54
|
+
getChartingOptions(): Readonly<ChartingOptions>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns `AdaptableOptions.containerOptions`
|
|
57
|
+
*/
|
|
58
|
+
getContainerOptions(): Readonly<ContainerOptions>;
|
|
59
|
+
/**
|
|
60
|
+
* Returns `AdaptableOptions.columnOptions`
|
|
61
|
+
*/
|
|
62
|
+
getColumnOptions(): Readonly<ColumnOptions>;
|
|
63
|
+
/**
|
|
64
|
+
* Returns `AdaptableOptions.dashboardOptions`
|
|
65
|
+
*/
|
|
66
|
+
getDashboardOptions(): Readonly<DashboardOptions>;
|
|
67
|
+
/**
|
|
68
|
+
* Returns `AdaptableOptions.dataChangeHistoryOptions`
|
|
69
|
+
*/
|
|
70
|
+
getDataChangeHistoryOptions(): Readonly<DataChangeHistoryOptions>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns `AdaptableOptions.editOptions`
|
|
73
|
+
*/
|
|
74
|
+
getEditOptions(): Readonly<EditOptions>;
|
|
75
|
+
/**
|
|
76
|
+
* Returns `AdaptableOptions.entitlementOptions`
|
|
77
|
+
*/
|
|
78
|
+
getEntitlementOptions(): Readonly<EntitlementOptions>;
|
|
79
|
+
/**
|
|
80
|
+
* Returns `AdaptableOptions.exportOptions`
|
|
81
|
+
*/
|
|
82
|
+
getExportOptions(): Readonly<ExportOptions>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns `AdaptableOptions.filterOptions`
|
|
85
|
+
*/
|
|
86
|
+
getFilterOptions(): Readonly<FilterOptions>;
|
|
87
|
+
/**
|
|
88
|
+
* Returns `AdaptableOptions.flashingCellOptions`
|
|
89
|
+
*/
|
|
90
|
+
getFlashingCellOptions(): Readonly<FlashingCellOptions>;
|
|
91
|
+
/**
|
|
92
|
+
* Returns `AdaptableOptions.generalOptions`
|
|
93
|
+
*/
|
|
94
|
+
getGeneralOptions(): Readonly<GeneralOptions>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns `AdaptableOptions.layoutOptions`
|
|
97
|
+
*/
|
|
98
|
+
getLayoutOptions(): Readonly<LayoutOptions>;
|
|
99
|
+
/**
|
|
100
|
+
* Returns `AdaptableOptions.menuOptions`
|
|
101
|
+
*/
|
|
102
|
+
getMenuOptions(): Readonly<MenuOptions>;
|
|
103
|
+
/**
|
|
104
|
+
* Returns `AdaptableOptions.notificationsOptions`
|
|
105
|
+
*/
|
|
106
|
+
getNotificationsOptions(): Readonly<NotificationsOptions>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns `AdaptableOptions.searchOptions`
|
|
109
|
+
*/
|
|
110
|
+
getSearchOptions(): Readonly<SearchOptions>;
|
|
111
|
+
/**
|
|
112
|
+
* Returns `AdaptableOptions.settingsPanelOptions`
|
|
113
|
+
*/
|
|
114
|
+
getSettingsPanelOptions(): Readonly<SettingsPanelOptions>;
|
|
115
|
+
/**
|
|
116
|
+
* Returns `AdaptableOptions.stateOptions`
|
|
117
|
+
*/
|
|
118
|
+
getStateOptions(): Readonly<StateOptions>;
|
|
119
|
+
/**
|
|
120
|
+
* Returns `AdaptableOptions.teamSharingOptions`
|
|
121
|
+
*/
|
|
122
|
+
getTeamSharingOptions(): Readonly<TeamSharingOptions>;
|
|
123
|
+
/**
|
|
124
|
+
* Returns `AdaptableOptions.toolPanelOptions`
|
|
125
|
+
*/
|
|
126
|
+
getToolPanelOptions(): Readonly<ToolPanelOptions>;
|
|
127
|
+
/**
|
|
128
|
+
* Returns `AdaptableOptions.userInterfaceOptions`
|
|
129
|
+
*/
|
|
130
|
+
getUserInterfaceOptions(): Readonly<UserInterfaceOptions>;
|
|
131
|
+
}
|
|
@@ -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;
|
|
@@ -38,7 +38,7 @@ class ChartingService {
|
|
|
38
38
|
}
|
|
39
39
|
saveNewChart(chartModel) {
|
|
40
40
|
var _a, _b;
|
|
41
|
-
const chartingOptions = (_a = this.api.
|
|
41
|
+
const chartingOptions = (_a = this.api.optionsApi.getChartingOptions()) !== null && _a !== void 0 ? _a : {};
|
|
42
42
|
const saveStragegy = (_b = chartingOptions.saveStrategy) !== null && _b !== void 0 ? _b : 'manual';
|
|
43
43
|
if (saveStragegy === 'none') {
|
|
44
44
|
return;
|
|
@@ -24,7 +24,7 @@ class EntitlementService {
|
|
|
24
24
|
return this.getEntitlementAccessLevelForModule(adaptableModule) == 'ReadOnly';
|
|
25
25
|
}
|
|
26
26
|
getEntitlementAccessLevelForModule(adaptableModule) {
|
|
27
|
-
let adaptableOptions = this.adaptableApi.
|
|
27
|
+
let adaptableOptions = this.adaptableApi.optionsApi.getAdaptableOptions();
|
|
28
28
|
let entitlementOptions = adaptableOptions.entitlementOptions;
|
|
29
29
|
if (entitlementOptions) {
|
|
30
30
|
const defaultAccessLevel = typeof entitlementOptions.defaultAccessLevel === 'function'
|
|
@@ -61,9 +61,9 @@ class EntitlementService {
|
|
|
61
61
|
if (this.isModuleHiddenEntitlement('GridInfo')) {
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
|
-
return this.adaptableApi.
|
|
65
|
-
.
|
|
66
|
-
.
|
|
64
|
+
return this.adaptableApi.optionsApi
|
|
65
|
+
.getUserInterfaceOptions()
|
|
66
|
+
.gridInfoSections.includes(section);
|
|
67
67
|
}
|
|
68
68
|
destroy() {
|
|
69
69
|
// TO DO
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { Report, ReportData, SystemReportName } from '../../../PredefinedConfig/ExportState';
|
|
2
2
|
import { AdaptableColumn } from '../../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
3
|
import { IAdaptableService } from './IAdaptableService';
|
|
4
|
-
import { RowNode } from '@ag-grid-community/core';
|
|
4
|
+
import { ExcelStyle, RowNode } from '@ag-grid-community/core';
|
|
5
5
|
import { SystemExportDestination } from '../../../types';
|
|
6
6
|
export interface IReportService extends IAdaptableService {
|
|
7
|
+
resetExcelStyleMemoization(): void;
|
|
8
|
+
registerExcelStyle(excelStyle: Partial<ExcelStyle>, cellClassKey: string): void;
|
|
9
|
+
getRegisteredExcelStyles(): ExcelStyle[];
|
|
10
|
+
getExcelStyleIdForCellClassKey(cellClassKey: string): string;
|
|
11
|
+
registerExcelStyleWithFormattedDate(cellClassId: string, isoFormattedValue: string): void;
|
|
12
|
+
getExcelStyleWithFormattedDate(cellClassId: string): string;
|
|
7
13
|
CreateSystemReport(systemReportName: SystemReportName): Report;
|
|
8
14
|
IsSystemReport(reportName: string): boolean;
|
|
9
15
|
IsSystemReportActive(reportName: SystemReportName): boolean;
|
|
@@ -86,7 +86,7 @@ class QueryLanguageService {
|
|
|
86
86
|
}
|
|
87
87
|
const force = (_a = config === null || config === void 0 ? void 0 : config.force) !== null && _a !== void 0 ? _a : false;
|
|
88
88
|
// get searchOptions to see if validation should be performed
|
|
89
|
-
if (!this.adaptableApi.
|
|
89
|
+
if (!this.adaptableApi.optionsApi.getAdaptableQLOptions().expressionOptions
|
|
90
90
|
.performExpressionValidation &&
|
|
91
91
|
!force) {
|
|
92
92
|
const result = { isValid: true, errorMessage: '' };
|
|
@@ -276,7 +276,7 @@ class QueryLanguageService {
|
|
|
276
276
|
// if there are no specific functions defined, it falls back to the default values
|
|
277
277
|
getModuleExpressionFunctionsMap(module) {
|
|
278
278
|
var _a, _b, _c;
|
|
279
|
-
const expressionOptions = this.adaptableApi.
|
|
279
|
+
const expressionOptions = this.adaptableApi.optionsApi.getAdaptableQLOptions().expressionOptions;
|
|
280
280
|
if (module) {
|
|
281
281
|
let cachedResult = this.cacheModuleSpecificExpressionFunctions.get(module);
|
|
282
282
|
if (cachedResult) {
|
|
@@ -361,7 +361,7 @@ class QueryLanguageService {
|
|
|
361
361
|
adaptableApi: this.adaptableApi,
|
|
362
362
|
args,
|
|
363
363
|
};
|
|
364
|
-
const customQueryVariableDefinition = (_c = (_b = (_a = this.adaptableApi.
|
|
364
|
+
const customQueryVariableDefinition = (_c = (_b = (_a = this.adaptableApi.optionsApi.getAdaptableQLOptions()) === null || _a === void 0 ? void 0 : _a.expressionOptions) === null || _b === void 0 ? void 0 : _b.customQueryVariables) === null || _c === void 0 ? void 0 : _c[functionName];
|
|
365
365
|
return typeof customQueryVariableDefinition === 'function'
|
|
366
366
|
? customQueryVariableDefinition(context)
|
|
367
367
|
: customQueryVariableDefinition;
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { Report, ReportData, SystemReportName } from '../../PredefinedConfig/ExportState';
|
|
3
3
|
import { IReportService } from './Interface/IReportService';
|
|
4
|
-
import { RowNode } from '@ag-grid-community/core';
|
|
4
|
+
import { ExcelStyle, RowNode } from '@ag-grid-community/core';
|
|
5
5
|
import { SystemExportDestination } from '../../AdaptableOptions/ExportOptions';
|
|
6
6
|
import { AdaptableApi } from '../../../types';
|
|
7
7
|
export declare class ReportService implements IReportService {
|
|
8
8
|
private adaptableApi;
|
|
9
|
+
private excelStylesCache;
|
|
10
|
+
private cellClassKey2excelStyleIdMap;
|
|
11
|
+
private excelStylesWithFormattedDate;
|
|
9
12
|
constructor(adaptableApi: AdaptableApi);
|
|
13
|
+
resetExcelStyleMemoization(): void;
|
|
14
|
+
registerExcelStyle(excelStyle: Partial<ExcelStyle>, cellClassKey: string): void;
|
|
15
|
+
getRegisteredExcelStyles(): ExcelStyle[];
|
|
16
|
+
getExcelStyleIdForCellClassKey(cellClassKey: string): string;
|
|
17
|
+
registerExcelStyleWithFormattedDate(cellClassId: string, isoFormattedValue: string): void;
|
|
18
|
+
getExcelStyleWithFormattedDate(cellClassId: string): string;
|
|
10
19
|
CreateSystemReport(systemReportName: SystemReportName): Report;
|
|
11
20
|
IsSystemReport(reportName: string): boolean;
|
|
12
21
|
IsSystemReportActive(reportName: SystemReportName): boolean;
|
|
@@ -26,5 +35,4 @@ export declare class ReportService implements IReportService {
|
|
|
26
35
|
destroy(): void;
|
|
27
36
|
private getCustomExportDateFormat;
|
|
28
37
|
private getCellExportValueFromRawValueByType;
|
|
29
|
-
private computeCellExportValueFormat;
|
|
30
38
|
}
|