@adaptabletools/adaptable 18.1.14 → 19.0.0-canary.0
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 +2 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +2 -1
- package/src/AdaptableOptions/ChartingOptions.d.ts +5 -1
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +5 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +5 -1
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +5 -1
- package/src/AdaptableOptions/LayoutOptions.d.ts +5 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +6 -2
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +5 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ChartingApi.d.ts +2 -2
- package/src/Api/ColumnApi.d.ts +6 -0
- package/src/Api/ConfigApi.d.ts +22 -2
- package/src/Api/Events/LiveDataChanged.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +2 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +3 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +4 -1
- package/src/Api/Implementation/ConfigApiImpl.js +16 -1
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +4 -1
- package/src/Api/Implementation/EntitlementApiImpl.js +31 -6
- package/src/Api/Implementation/ExportApiImpl.js +5 -7
- package/src/Api/Implementation/GridApiImpl.js +1 -1
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +61 -0
- package/src/Api/Implementation/TeamSharingApiImpl.js +2 -6
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -6
- package/src/Api/Internal/AdaptableInternalApi.js +5 -11
- package/src/Api/Internal/EntitlementInternalApi.d.ts +4 -0
- package/src/Api/Internal/EntitlementInternalApi.js +11 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +33 -8
- package/src/Api/Internal/ExportInternalApi.js +576 -5
- package/src/Api/Internal/NamedQueryInternalApi.d.ts +0 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +0 -4
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -5
- package/src/PredefinedConfig/Common/ExtendedLayoutInfo.d.ts +12 -0
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.d.ts +2 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -6
- package/src/Redux/ActionsReducers/GridRedux.js +8 -8
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -3
- package/src/Redux/ActionsReducers/LayoutRedux.js +9 -9
- package/src/Redux/ActionsReducers/NamedQueryRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +1 -1
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/PluginsRedux.js +2 -2
- package/src/Redux/Store/AdaptableReduxMerger.js +3 -3
- package/src/Redux/Store/AdaptableStore.js +2 -4
- package/src/Strategy/AdaptableModuleBase.js +1 -2
- package/src/Strategy/ColumnFilterModule.js +1 -2
- package/src/Strategy/ExportModule.js +17 -44
- package/src/Strategy/FlashingCellModule.js +2 -10
- package/src/Strategy/ScheduleModule.js +4 -6
- package/src/Strategy/SmartEditModule.js +1 -7
- package/src/Strategy/TeamSharingModule.js +2 -2
- package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +1 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +1 -3
- package/src/Utilities/Constants/FilterConstants.d.ts +10 -0
- package/src/Utilities/Constants/FilterConstants.js +8 -0
- package/src/Utilities/Constants/GeneralConstants.d.ts +41 -4
- package/src/Utilities/Constants/GeneralConstants.js +42 -3
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +0 -5
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +14 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +65 -0
- package/src/Utilities/Extensions/EnumExtensions.d.ts +0 -4
- package/src/Utilities/Extensions/EnumExtensions.js +2 -12
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +4 -10
- package/src/Utilities/Helpers/AdaptableHelper.js +7 -59
- package/src/Utilities/Helpers/FormatHelper.d.ts +9 -0
- package/src/Utilities/Helpers/FormatHelper.js +26 -14
- package/src/Utilities/Helpers/Helper.d.ts +0 -10
- package/src/Utilities/Helpers/Helper.js +0 -70
- package/src/Utilities/Services/ChartingService.d.ts +2 -2
- package/src/Utilities/Services/ChartingService.js +5 -11
- package/src/Utilities/Services/ModuleService.js +35 -31
- package/src/Utilities/Services/RowEditService.js +1 -6
- package/src/Utilities/Services/RowSummaryService.js +2 -2
- package/src/Utilities/Services/ValidationService.js +2 -16
- package/src/View/Alert/AlertEmptyView.js +1 -2
- package/src/View/Charting/ChartingStatusBarPopover.js +1 -2
- package/src/View/Charting/useChartingElements.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +2 -6
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +2 -12
- package/src/View/Components/ModuleValueSelector/index.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -3
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -7
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -12
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +3 -23
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -5
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -3
- package/src/View/Components/ValueSelector/index.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +2 -2
- package/src/View/Dashboard/CustomDashboardButton.js +1 -6
- package/src/View/Dashboard/CustomToolbar.js +2 -9
- package/src/View/Dashboard/Dashboard.js +2 -4
- package/src/View/Dashboard/DashboardPopup.js +1 -3
- package/src/View/Dashboard/DashboardToolbarFactory.js +1 -2
- package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -3
- package/src/View/Export/ExportViewPanel.js +2 -4
- package/src/View/Export/Wizard/ReportSummaryWizard.js +2 -6
- package/src/View/GridFilter/GridFilterExpressionEditor.js +2 -2
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +2 -6
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +1 -7
- package/src/View/Layout/SaveLayoutButton.js +1 -3
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +2 -2
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
- package/src/agGrid/ActionColumnRenderer.js +8 -22
- package/src/agGrid/AdaptableAgGrid.d.ts +6 -7
- package/src/agGrid/AdaptableAgGrid.js +165 -146
- package/src/agGrid/AgGridAdapter.d.ts +0 -1
- package/src/agGrid/AgGridAdapter.js +8 -11
- package/src/agGrid/AgGridColumnAdapter.d.ts +3 -1
- package/src/agGrid/AgGridColumnAdapter.js +40 -14
- package/src/agGrid/BadgeRenderer.js +4 -22
- package/src/agGrid/FloatingFilterWrapper.js +21 -0
- package/src/agGrid/buildSortedColumnStateForLayout.d.ts +1 -1
- package/src/agGrid/buildSortedColumnStateForLayout.js +2 -2
- package/src/agGrid/defaultAdaptableOptions.js +35 -30
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -15
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +89 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +10 -9
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/Redux/ActionsReducers/QueryRedux.d.ts +0 -10
- package/src/Redux/ActionsReducers/QueryRedux.js +0 -20
- package/src/Utilities/Helpers/FormatContentHelper.d.ts +0 -22
- package/src/Utilities/Helpers/FormatContentHelper.js +0 -34
- package/src/Utilities/Services/EntitlementService.d.ts +0 -14
- package/src/Utilities/Services/EntitlementService.js +0 -63
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -10
- package/src/Utilities/Services/Interface/IReportService.d.ts +0 -27
- package/src/Utilities/Services/Interface/IReportService.js +0 -1
- package/src/Utilities/Services/ReportService.d.ts +0 -41
- package/src/Utilities/Services/ReportService.js +0 -603
- package/src/Utilities/isAdaptableObject.d.ts +0 -2
- package/src/Utilities/isAdaptableObject.js +0 -4
- package/src/Utilities/reorder.d.ts +0 -1
- package/src/Utilities/reorder.js +0 -13
- package/src/Utilities/sortWithOrder.d.ts +0 -11
- package/src/Utilities/sortWithOrder.js +0 -50
- /package/src/{Utilities/Services/Interface/IEntitlementService.js → PredefinedConfig/Common/ExtendedLayoutInfo.js} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { QueryState } from '../../PredefinedConfig/QueryState';
|
|
2
|
-
import * as Redux from 'redux';
|
|
3
|
-
/**
|
|
4
|
-
* @ReduxAction Deletes query state
|
|
5
|
-
*/
|
|
6
|
-
export declare const QUERY_CLEANUP = "QUERY_CLEANUP";
|
|
7
|
-
export interface QueryCleanupAction extends Redux.Action {
|
|
8
|
-
}
|
|
9
|
-
export declare const QueryCleanup: () => QueryCleanupAction;
|
|
10
|
-
export declare const QueryReducer: Redux.Reducer<QueryState>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EMPTY_ARRAY, EMPTY_STRING } from '../../Utilities/Constants/GeneralConstants';
|
|
2
|
-
/**
|
|
3
|
-
* @ReduxAction Deletes query state
|
|
4
|
-
*/
|
|
5
|
-
export const QUERY_CLEANUP = 'QUERY_CLEANUP';
|
|
6
|
-
export const QueryCleanup = () => ({
|
|
7
|
-
type: QUERY_CLEANUP,
|
|
8
|
-
});
|
|
9
|
-
const initialState = {
|
|
10
|
-
NamedQueries: EMPTY_ARRAY,
|
|
11
|
-
CurrentQuery: EMPTY_STRING,
|
|
12
|
-
};
|
|
13
|
-
export const QueryReducer = (state = initialState, action) => {
|
|
14
|
-
switch (action.type) {
|
|
15
|
-
case QUERY_CLEANUP:
|
|
16
|
-
return initialState;
|
|
17
|
-
default:
|
|
18
|
-
return state;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IRowNode } from '@ag-grid-community/core';
|
|
2
|
-
import { AdaptableApi, AdaptableColumn } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Context used for Placeholders in Display Format
|
|
5
|
-
*/
|
|
6
|
-
export interface DisplayFormatPlaceholderContext {
|
|
7
|
-
column: AdaptableColumn;
|
|
8
|
-
rowNode: IRowNode;
|
|
9
|
-
input: any;
|
|
10
|
-
api: AdaptableApi;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Supported tokens:
|
|
14
|
-
* - column -> [column]
|
|
15
|
-
* - input -> [value]
|
|
16
|
-
* - rowData.colId -> [rowData.colId]
|
|
17
|
-
*/
|
|
18
|
-
export declare function resolvePlaceholders(text: string, context: DisplayFormatPlaceholderContext): string;
|
|
19
|
-
export declare const FormatContentHelper: {
|
|
20
|
-
resolvePlaceholders: typeof resolvePlaceholders;
|
|
21
|
-
};
|
|
22
|
-
export default FormatContentHelper;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import Helper from '../../Utilities/Helpers/Helper';
|
|
2
|
-
/**
|
|
3
|
-
* Supported tokens:
|
|
4
|
-
* - column -> [column]
|
|
5
|
-
* - input -> [value]
|
|
6
|
-
* - rowData.colId -> [rowData.colId]
|
|
7
|
-
*/
|
|
8
|
-
export function resolvePlaceholders(text, context) {
|
|
9
|
-
if (!text) {
|
|
10
|
-
return text;
|
|
11
|
-
}
|
|
12
|
-
if (!context) {
|
|
13
|
-
return text;
|
|
14
|
-
}
|
|
15
|
-
if (context === null || context === void 0 ? void 0 : context.input) {
|
|
16
|
-
text = Helper.replaceAll(text, '[value]', context.input);
|
|
17
|
-
}
|
|
18
|
-
if (context === null || context === void 0 ? void 0 : context.column) {
|
|
19
|
-
text = Helper.replaceAll(text, '[column]', context.api.columnApi.getFriendlyNameForColumnId(context.column.columnId));
|
|
20
|
-
}
|
|
21
|
-
if (context === null || context === void 0 ? void 0 : context.rowNode) {
|
|
22
|
-
const columns = Helper.extractColsFromText(text);
|
|
23
|
-
for (const column of columns) {
|
|
24
|
-
if (context.api.columnApi.getColumnWithColumnId(column)) {
|
|
25
|
-
text = Helper.replaceAll(text, `[rowData.${column}]`, context.api.gridApi.getRawValueFromRowNode(context.rowNode, column));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return text;
|
|
30
|
-
}
|
|
31
|
-
export const FormatContentHelper = {
|
|
32
|
-
resolvePlaceholders,
|
|
33
|
-
};
|
|
34
|
-
export default FormatContentHelper;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IEntitlementService } from './Interface/IEntitlementService';
|
|
2
|
-
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
3
|
-
import { AccessLevel } from '../../PredefinedConfig/Common/Entitlement';
|
|
4
|
-
import { AdaptableApi } from '../../../types';
|
|
5
|
-
export declare class EntitlementService implements IEntitlementService {
|
|
6
|
-
private adaptableApi;
|
|
7
|
-
constructor(adaptableApi: AdaptableApi);
|
|
8
|
-
setModulesEntitlements(): void;
|
|
9
|
-
isModuleHiddenEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
10
|
-
isModuleFullEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
11
|
-
isModuleReadOnlyEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
12
|
-
getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export class EntitlementService {
|
|
2
|
-
constructor(adaptableApi) {
|
|
3
|
-
this.adaptableApi = adaptableApi;
|
|
4
|
-
this.adaptableApi = adaptableApi;
|
|
5
|
-
}
|
|
6
|
-
setModulesEntitlements() {
|
|
7
|
-
this.adaptableApi.internalApi
|
|
8
|
-
.getModuleService()
|
|
9
|
-
.getModuleCollection()
|
|
10
|
-
.forEach((module) => {
|
|
11
|
-
module.setModuleEntitlement();
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
isModuleHiddenEntitlement(adaptableModule) {
|
|
15
|
-
return this.getEntitlementAccessLevelForModule(adaptableModule) == 'Hidden';
|
|
16
|
-
}
|
|
17
|
-
isModuleFullEntitlement(adaptableModule) {
|
|
18
|
-
return this.getEntitlementAccessLevelForModule(adaptableModule) == 'Full';
|
|
19
|
-
}
|
|
20
|
-
isModuleReadOnlyEntitlement(adaptableModule) {
|
|
21
|
-
return this.getEntitlementAccessLevelForModule(adaptableModule) == 'ReadOnly';
|
|
22
|
-
}
|
|
23
|
-
getEntitlementAccessLevelForModule(adaptableModule) {
|
|
24
|
-
let adaptableOptions = this.adaptableApi.optionsApi.getAdaptableOptions();
|
|
25
|
-
let entitlementOptions = adaptableOptions.entitlementOptions;
|
|
26
|
-
if (entitlementOptions) {
|
|
27
|
-
const defaultAccessLevelContext = {
|
|
28
|
-
userName: adaptableOptions.userName,
|
|
29
|
-
adaptableId: adaptableOptions.adaptableId,
|
|
30
|
-
adaptableApi: this.adaptableApi,
|
|
31
|
-
};
|
|
32
|
-
const defaultAccessLevel = typeof entitlementOptions.defaultAccessLevel === 'function'
|
|
33
|
-
? entitlementOptions.defaultAccessLevel(defaultAccessLevelContext)
|
|
34
|
-
: entitlementOptions.defaultAccessLevel;
|
|
35
|
-
const moduleEntitlements = entitlementOptions.moduleEntitlements;
|
|
36
|
-
if (moduleEntitlements) {
|
|
37
|
-
if (typeof moduleEntitlements === 'function') {
|
|
38
|
-
const entitlementContext = {
|
|
39
|
-
adaptableModule,
|
|
40
|
-
userName: adaptableOptions.userName,
|
|
41
|
-
adaptableId: adaptableOptions.adaptableId,
|
|
42
|
-
defaultAccessLevel,
|
|
43
|
-
adaptableApi: this.adaptableApi,
|
|
44
|
-
};
|
|
45
|
-
const dynamicModuleEntitlement = moduleEntitlements(entitlementContext);
|
|
46
|
-
return dynamicModuleEntitlement !== null && dynamicModuleEntitlement !== void 0 ? dynamicModuleEntitlement : defaultAccessLevel;
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
const entitlement = moduleEntitlements.find((f) => f.adaptableModule === adaptableModule);
|
|
50
|
-
if (entitlement) {
|
|
51
|
-
return entitlement.accessLevel;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
// if still here then return their default Access Level
|
|
56
|
-
return defaultAccessLevel;
|
|
57
|
-
}
|
|
58
|
-
return 'Full';
|
|
59
|
-
}
|
|
60
|
-
destroy() {
|
|
61
|
-
// TO DO
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IAdaptableService } from './IAdaptableService';
|
|
2
|
-
import { AdaptableModule } from '../../../PredefinedConfig/Common/Types';
|
|
3
|
-
import { AccessLevel } from '../../../PredefinedConfig/Common/Entitlement';
|
|
4
|
-
export interface IEntitlementService extends IAdaptableService {
|
|
5
|
-
setModulesEntitlements(): void;
|
|
6
|
-
isModuleHiddenEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
7
|
-
isModuleFullEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
8
|
-
isModuleReadOnlyEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
9
|
-
getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
|
|
10
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Report, ReportData, SystemReportName } from '../../../PredefinedConfig/ExportState';
|
|
2
|
-
import { AdaptableColumn, AdaptableColumnBase } from '../../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
-
import { IAdaptableService } from './IAdaptableService';
|
|
4
|
-
import { ExcelStyle, IRowNode } from '@ag-grid-community/core';
|
|
5
|
-
import { CustomDestination, SystemExportDestination } from '../../../types';
|
|
6
|
-
export interface IReportService extends IAdaptableService {
|
|
7
|
-
buildExcelStylesForVisualReports(): ExcelStyle[];
|
|
8
|
-
getExcelStyleIdForCellClassKey(cellClassKey: string): string;
|
|
9
|
-
getExcelStyleWithFormattedDate(cellClassId: string): string;
|
|
10
|
-
CreateSystemReport(systemReportName: SystemReportName): Report;
|
|
11
|
-
IsSystemReport(reportName: string): boolean;
|
|
12
|
-
IsSystemReportActive(reportName: SystemReportName): boolean;
|
|
13
|
-
IsSystemExportDestinationActive(exportDestination: SystemExportDestination): boolean;
|
|
14
|
-
GetReportColumnScopeShortDescription(report: Report): string[];
|
|
15
|
-
GetReportColumnScopeLongDescription(report: Report): string;
|
|
16
|
-
GetReportExpressionDescription(Report: Report, cols: AdaptableColumn[]): string;
|
|
17
|
-
PublishLiveLiveDataChangedEvent(reportDestination: 'OpenFin' | 'ipushpull', liveDataChangedTrigger: 'Connected' | 'Disconnected' | 'SnapshotSent' | 'LiveDataStarted' | 'LiveDataStopped' | 'LiveDataUpdated', liveReport?: any): void;
|
|
18
|
-
getReportDataColumns(report: Report, includePrimaryKey?: boolean): AdaptableColumnBase[];
|
|
19
|
-
getReportDataRows(report: Report, columns: AdaptableColumnBase[], includePrimaryKey?: boolean): Record<string, any>[];
|
|
20
|
-
getReportData(report: Report, includePrimaryKey?: boolean): ReportData;
|
|
21
|
-
getReportDataAsArray(report: Report, includePrimaryKey?: boolean): any[][];
|
|
22
|
-
getReportDataColumns(report: Report, includePrimaryKey?: boolean): AdaptableColumnBase[];
|
|
23
|
-
convertReportDataToArray(reportData: ReportData): any[][];
|
|
24
|
-
getCellExportValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
25
|
-
getCellExportValueFromRawValue(rowNode: IRowNode, rawValue: any, columnId: string): any;
|
|
26
|
-
getReportFileName(reportName: string, destination: SystemExportDestination | CustomDestination): string;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
2
|
-
import { Report, ReportData, SystemReportName } from '../../PredefinedConfig/ExportState';
|
|
3
|
-
import { IReportService } from './Interface/IReportService';
|
|
4
|
-
import { ExcelStyle, IRowNode } from '@ag-grid-community/core';
|
|
5
|
-
import { AdaptableReportColumn, SystemExportDestination } from '../../AdaptableOptions/ExportOptions';
|
|
6
|
-
import { AdaptableApi, CustomDestination } from '../../../types';
|
|
7
|
-
export declare class ReportService implements IReportService {
|
|
8
|
-
private adaptableApi;
|
|
9
|
-
private excelStylesCache;
|
|
10
|
-
private cellClassKey2excelStyleIdMap;
|
|
11
|
-
private excelStylesWithFormattedDate;
|
|
12
|
-
constructor(adaptableApi: AdaptableApi);
|
|
13
|
-
destroy(): void;
|
|
14
|
-
getExcelStyleIdForCellClassKey(cellClassKey: string): string;
|
|
15
|
-
getExcelStyleWithFormattedDate(cellClassId: string): string;
|
|
16
|
-
CreateSystemReport(systemReportName: SystemReportName): Report;
|
|
17
|
-
IsSystemReport(reportName: string): boolean;
|
|
18
|
-
IsSystemReportActive(reportName: SystemReportName): boolean;
|
|
19
|
-
IsSystemExportDestinationActive(exportDestination: SystemExportDestination): boolean;
|
|
20
|
-
GetReportColumnScopeShortDescription(report: Report): string[];
|
|
21
|
-
GetReportColumnScopeLongDescription(report: Report): string;
|
|
22
|
-
GetReportExpressionDescription(report: Report, cols: AdaptableColumn[]): string;
|
|
23
|
-
getReportDataColumns(report: Report, includePrimaryKey?: boolean): AdaptableReportColumn[];
|
|
24
|
-
getReportDataRows(report: Report, columns: AdaptableReportColumn[], includePrimaryKey?: boolean): Record<string, any>[];
|
|
25
|
-
getReportData(report: Report, includePrimaryKey?: boolean): ReportData;
|
|
26
|
-
getReportDataAsArray(report: Report, includePrimaryKey?: boolean): any[][];
|
|
27
|
-
convertReportDataToArray(reportData: ReportData): any[][];
|
|
28
|
-
getRowObjectForColumnIds(rowNode: IRowNode, columnIds: string[]): Record<string, any>;
|
|
29
|
-
PublishLiveLiveDataChangedEvent(reportDestination: 'ipushpull', liveDataTrigger: 'Connected' | 'Disconnected' | 'LiveDataStarted' | 'LiveDataStopped' | 'LiveDataUpdated', liveReport?: any): void;
|
|
30
|
-
getCellExportValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
31
|
-
getCellExportValueFromRawValue(rowNode: IRowNode, cellRawValue: any, columnId: string): any;
|
|
32
|
-
getReportFileName(reportName: string, destination: SystemExportDestination | CustomDestination): string;
|
|
33
|
-
private getCustomExportDateFormat;
|
|
34
|
-
private getCellExportValueFromRawValueByType;
|
|
35
|
-
buildExcelStylesForVisualReports(): ExcelStyle[];
|
|
36
|
-
createExcelStyleMemoization(): void;
|
|
37
|
-
private convertCSSToExcelStyle;
|
|
38
|
-
private resetExcelStyleMemoization;
|
|
39
|
-
private registerExcelStyle;
|
|
40
|
-
private registerExcelStyleWithFormattedDate;
|
|
41
|
-
}
|