@acorex-platform/module-report-management-client 0.0.15 → 0.0.21
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/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-BDCuhd5O.mjs +4232 -0
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-BDCuhd5O.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs +85 -149
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-entity-reports-page-component.provider-C6tJPxri.mjs +24 -0
- package/fesm2022/acorex-platform-module-report-management-client-entity-reports-page-component.provider-C6tJPxri.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-entity-reports-page.component-fBftKdQW.mjs +166 -0
- package/fesm2022/acorex-platform-module-report-management-client-entity-reports-page.component-fBftKdQW.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-popup-viewer.component-B9msMMod.mjs +113 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-popup-viewer.component-B9msMMod.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client.mjs +1 -3584
- package/fesm2022/acorex-platform-module-report-management-client.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-report-management-client-contracts.d.ts +280 -120
- package/types/acorex-platform-module-report-management-client.d.ts +256 -206
- package/fesm2022/acorex-platform-module-report-management-client-report-drill-popup.component-CvfwhlEp.mjs +0 -59
- package/fesm2022/acorex-platform-module-report-management-client-report-drill-popup.component-CvfwhlEp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-runner-root-page.component-DgvoIHsK.mjs +0 -504
- package/fesm2022/acorex-platform-module-report-management-client-report-runner-root-page.component-DgvoIHsK.mjs.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Injector } from '@angular/core';
|
|
3
2
|
import * as i1 from '@acorex-platform/framework-client/domain';
|
|
4
3
|
import * as i2 from '@acorex-platform/framework-client/runtime';
|
|
5
4
|
import { AXPCommandService } from '@acorex-platform/framework-client/runtime';
|
|
6
5
|
import * as _acorex_platform_framework_shared_core from '@acorex-platform/framework-shared/core';
|
|
7
|
-
import {
|
|
8
|
-
import { AXPCommand } from '@acorex-platform/framework-shared/runtime';
|
|
6
|
+
import { AXPMultiLanguageString, AXPContextData, AXPFilterClause, AXPRuntimeQueryResult, AXPGridLayoutOptions, AXPBreadcrumbItem, AXPActionMenuItem, AXPBackButton, AXPExecuteCommand } from '@acorex-platform/framework-shared/core';
|
|
7
|
+
import { AXPCommand, AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';
|
|
9
8
|
import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex-platform/framework-client/auth';
|
|
10
9
|
import * as _acorex_cdk_common from '@acorex/cdk/common';
|
|
11
10
|
import { AXDataSourceQuery, AXDataSource } from '@acorex/cdk/common';
|
|
12
|
-
import * as
|
|
11
|
+
import * as _acorex_platform_framework_shared_entity from '@acorex-platform/framework-shared/entity';
|
|
12
|
+
import { AXPQuerySort } from '@acorex-platform/framework-shared/entity';
|
|
13
13
|
import * as _acorex_platform_framework_shared_widget_core from '@acorex-platform/framework-shared/widget-core';
|
|
14
14
|
import { AXPWidgetColumnNode, AXPPageStatus } from '@acorex-platform/framework-shared/widget-core';
|
|
15
15
|
import * as _acorex_platform_framework_client_layout_builder from '@acorex-platform/framework-client/layout/builder';
|
|
@@ -19,11 +19,9 @@ import * as _ngrx_signals from '@ngrx/signals';
|
|
|
19
19
|
import * as _acorex_platform_framework_client_themes_shared from '@acorex-platform/framework-client/themes/shared';
|
|
20
20
|
import { AXPDeviceService } from '@acorex-platform/framework-client/core';
|
|
21
21
|
import { AXPPageLayoutBaseComponent } from '@acorex-platform/framework-client/layout/views';
|
|
22
|
-
import {
|
|
23
|
-
import { AXPReportCategory, AXPReportDefinition, AXPReportLayoutType, AXPReportLayoutAction, AXPReportLayoutDefinition, AXPLayoutExecutionContext, AXPExecutionReportCommandResult, AXPLayoutSwitcherOption, AXPReportTableLayout, AXPReportChartLayout, AXPReportPdfLayout, AXPReportTableSummaryResult, AXPReportTableLayoutRowAction } from '@acorex-platform/module-report-management-client/contracts';
|
|
22
|
+
import { AXPReportDefinition, AXPReportEntityBinding, AXPReportLayoutType, AXPReportLayoutAction, AXPReportLayoutDefinition, AXPChartDataMapping, AXPLayoutSwitcherOption, AXPReportViewerFreeze, AXPReportTableLayout, AXPReportChartLayout, AXPReportPdfLayout, AXPReportTableSummaryResult, AXPReportTableLayoutRowAction } from '@acorex-platform/module-report-management-client/contracts';
|
|
24
23
|
export * from '@acorex-platform/module-report-management-client/contracts';
|
|
25
24
|
import * as dist_libs_framework_client_types_acorex_platform_framework_client_layout_builder from 'dist/libs/framework/client/types/acorex-platform-framework-client-layout-builder';
|
|
26
|
-
import * as node_modules__acorex_platform_framework_shared_core_src_lib from 'node_modules/@acorex-platform/framework-shared/core/src/lib';
|
|
27
25
|
import { AXBarChartValue, AXBarChartOption } from '@acorex/charts/bar-chart';
|
|
28
26
|
import { AXChartLegendOptions } from '@acorex/charts/chart-legend';
|
|
29
27
|
import { AXRowCommandItemClickEvent, AXDataTableRowDbClick, onColumnSizeChangedEvent, AXColumnsOrderChangedEvent, AXRowCommandItem } from '@acorex/components/data-table';
|
|
@@ -37,34 +35,54 @@ declare class AXMReportManagementModule {
|
|
|
37
35
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXMReportManagementModule>;
|
|
38
36
|
}
|
|
39
37
|
|
|
40
|
-
interface
|
|
38
|
+
interface AXPOpenReportInPopupCommandInput {
|
|
41
39
|
reportId?: string;
|
|
42
40
|
layoutId?: string;
|
|
43
|
-
|
|
41
|
+
runId?: string;
|
|
42
|
+
title?: AXPMultiLanguageString;
|
|
44
43
|
parameters?: Record<string, unknown>;
|
|
45
44
|
hideColumnFields?: string[];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
data?: Record<string, unknown>;
|
|
49
|
-
};
|
|
50
|
-
options?: Partial<AXPDrillToReportCommandInput>;
|
|
45
|
+
data?: Record<string, unknown>;
|
|
46
|
+
options?: Partial<AXPOpenReportInPopupCommandInput>;
|
|
51
47
|
}
|
|
52
|
-
|
|
48
|
+
/** Opens a report in a results-only popup. Pass `runId` to show a frozen generation run. */
|
|
49
|
+
declare class AXPOpenReportInPopupCommand implements AXPCommand<AXPOpenReportInPopupCommandInput | Record<string, unknown>, void> {
|
|
53
50
|
private readonly popupService;
|
|
54
51
|
private readonly expressionEvaluator;
|
|
55
52
|
private readonly translate;
|
|
56
|
-
|
|
53
|
+
private readonly reportViewerService;
|
|
54
|
+
execute(input: AXPOpenReportInPopupCommandInput | Record<string, unknown>): AXPCommandExecuteResultPromise<void>;
|
|
57
55
|
private resolveRowData;
|
|
58
56
|
private resolveOptions;
|
|
59
57
|
private resolvePopupTitle;
|
|
60
|
-
|
|
61
|
-
static
|
|
58
|
+
private resolveExplicitPopupTitle;
|
|
59
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPOpenReportInPopupCommand, never>;
|
|
60
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPOpenReportInPopupCommand>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface AXPOpenReportViewerCommandInput {
|
|
64
|
+
reportId?: string;
|
|
65
|
+
runId?: string;
|
|
66
|
+
data?: Record<string, unknown>;
|
|
67
|
+
options?: Partial<AXPOpenReportViewerCommandInput>;
|
|
68
|
+
}
|
|
69
|
+
/** Opens a report in the full-page report viewer. */
|
|
70
|
+
declare class AXPOpenReportViewerCommand implements AXPCommand<AXPOpenReportViewerCommandInput | Record<string, unknown>, void> {
|
|
71
|
+
private readonly sessionService;
|
|
72
|
+
private readonly tabNavigation;
|
|
73
|
+
private readonly expressionEvaluator;
|
|
74
|
+
private readonly translate;
|
|
75
|
+
execute(input: AXPOpenReportViewerCommandInput | Record<string, unknown>): AXPCommandExecuteResultPromise<void>;
|
|
76
|
+
private resolveRowData;
|
|
77
|
+
private resolveOptions;
|
|
78
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPOpenReportViewerCommand, never>;
|
|
79
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPOpenReportViewerCommand>;
|
|
62
80
|
}
|
|
63
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Registers report capabilities into the shared Insights & Reporting group.
|
|
84
|
+
*/
|
|
64
85
|
declare class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {
|
|
65
|
-
private injector;
|
|
66
|
-
private readonly translateService;
|
|
67
|
-
constructor(injector: Injector);
|
|
68
86
|
define(context: AXPPermissionDefinitionProviderContext): Promise<void>;
|
|
69
87
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMPermissionDefinitionProvider, never>;
|
|
70
88
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMPermissionDefinitionProvider>;
|
|
@@ -86,185 +104,53 @@ interface AXPReportViewerUserSettings {
|
|
|
86
104
|
}>;
|
|
87
105
|
}
|
|
88
106
|
|
|
107
|
+
interface AXPEntityBoundReport {
|
|
108
|
+
report: AXPReportDefinition;
|
|
109
|
+
binding: AXPReportEntityBinding;
|
|
110
|
+
}
|
|
111
|
+
|
|
89
112
|
/**
|
|
90
113
|
* Report Viewer Service
|
|
91
114
|
*
|
|
92
115
|
* Handles report definition retrieval, caching, and layout actions.
|
|
93
|
-
*
|
|
94
|
-
* Performance optimizations:
|
|
95
|
-
* 1. Uses childrenCount to determine if category has children (no query needed)
|
|
96
|
-
* 2. Uses itemsCount to determine if category has reports (no query needed)
|
|
97
|
-
* 3. Aggressive caching prevents duplicate API calls
|
|
98
|
-
* 4. Single pending request per resource prevents race conditions
|
|
99
|
-
* 5. Lazy loading - only loads data when needed
|
|
100
116
|
*/
|
|
101
117
|
declare class AXPReportViewerService {
|
|
102
118
|
private readonly entityService;
|
|
103
|
-
private readonly reportCategoryService;
|
|
104
119
|
private readonly reportDefinitionService;
|
|
105
|
-
/** Cache for
|
|
106
|
-
private categoriesById;
|
|
107
|
-
/** Cache for categories by parentId - O(1) lookup */
|
|
108
|
-
private categoriesByParentId;
|
|
109
|
-
/** Cache for report definitions by categoryId - O(1) lookup */
|
|
110
|
-
private definitionsByCategory;
|
|
111
|
-
/** Cache for individual report definitions by id - O(1) lookup */
|
|
120
|
+
/** Cache for individual report definitions by id */
|
|
112
121
|
private definitionsById;
|
|
113
122
|
/** Pending API requests to prevent duplicate calls */
|
|
114
|
-
private pendingCategoriesRequests;
|
|
115
|
-
private pendingDefinitionsRequests;
|
|
116
123
|
private pendingReportRequests;
|
|
117
124
|
/**
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* preventing unnecessary API calls during navigation
|
|
122
|
-
*
|
|
123
|
-
* @param parentId - Parent category ID (undefined = root categories)
|
|
124
|
-
* @returns Array of categories with count metadata (childrenCount, itemsCount)
|
|
125
|
+
* Reports bound to a host entity type via `entities[].entity`.
|
|
126
|
+
* Falls back to an in-memory filter when the nested-array query returns nothing
|
|
127
|
+
* (or is unsupported by the current query backend).
|
|
125
128
|
*/
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Get single category by ID with O(1) lookup
|
|
129
|
-
*
|
|
130
|
-
* Optimization: Uses Map for instant retrieval, falls back to
|
|
131
|
-
* searching cache, then providers if not found
|
|
132
|
-
*/
|
|
133
|
-
getCategoryById(categoryId: string): Promise<AXPReportCategory | undefined>;
|
|
134
|
-
/**
|
|
135
|
-
* Get category path from root to specified category
|
|
136
|
-
*
|
|
137
|
-
* Optimization: Builds path using cached categories only
|
|
138
|
-
*/
|
|
139
|
-
getCategoriesPathById(categoryId: string): Promise<AXPReportCategory[]>;
|
|
140
|
-
/**
|
|
141
|
-
* Get report definitions for a category with smart caching
|
|
142
|
-
*
|
|
143
|
-
* Optimization: Checks itemsCount before querying
|
|
144
|
-
* - If itemsCount = 0, returns empty array (no API call)
|
|
145
|
-
* - If itemsCount > 0, loads and caches reports
|
|
146
|
-
* - Returns cached result on subsequent calls
|
|
147
|
-
*
|
|
148
|
-
* @param categoryId - Category ID to get reports from
|
|
149
|
-
* @returns Array of report definitions
|
|
150
|
-
*/
|
|
151
|
-
getReportsByCategoryId(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
129
|
+
getReportsByEntityType(entityType: string): Promise<AXPEntityBoundReport[]>;
|
|
152
130
|
/**
|
|
153
131
|
* Get single report definition by ID with O(1) lookup
|
|
154
|
-
*
|
|
155
|
-
* Optimization: Uses Map for instant retrieval
|
|
156
132
|
*/
|
|
157
133
|
getReportById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
158
134
|
/**
|
|
159
|
-
* Get
|
|
160
|
-
*
|
|
161
|
-
* Optimization: Searches cache first, loads on-demand if needed
|
|
162
|
-
*/
|
|
163
|
-
getCategoryIdByReportId(reportId: string): Promise<string | undefined>;
|
|
164
|
-
/**
|
|
165
|
-
* Get category path for a report
|
|
166
|
-
*/
|
|
167
|
-
getCategoriesPathByReportId(reportId: string): Promise<AXPReportCategory[]>;
|
|
168
|
-
/**
|
|
169
|
-
* Get general actions list for a layout type
|
|
170
|
-
* Override in connectivity layer (mock/API) to provide general actions
|
|
171
|
-
* Base implementation returns empty array
|
|
172
|
-
*
|
|
173
|
-
* @param layoutType - The layout type
|
|
174
|
-
* @returns Array of general actions for the layout type
|
|
135
|
+
* Get general actions list for a layout type.
|
|
136
|
+
* Override in connectivity layer (mock/API) to provide general actions.
|
|
175
137
|
*/
|
|
176
138
|
getGeneralActionsList(layoutType: AXPReportLayoutType): AXPReportLayoutAction[];
|
|
177
139
|
/**
|
|
178
|
-
* Get merged actions for a layout definition
|
|
179
|
-
* Combines general actions
|
|
180
|
-
* Layout-specific actions take precedence (by name) over general actions
|
|
181
|
-
*
|
|
182
|
-
* @param layoutDefinition - The layout definition
|
|
183
|
-
* @returns Merged array of actions (general + custom)
|
|
140
|
+
* Get merged actions for a layout definition.
|
|
141
|
+
* Combines general actions with layout-specific actions.
|
|
184
142
|
*/
|
|
185
143
|
getMergedActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[];
|
|
186
|
-
/**
|
|
187
|
-
* Get primary actions for a layout definition
|
|
188
|
-
*/
|
|
189
144
|
getPrimaryActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[];
|
|
190
|
-
/**
|
|
191
|
-
* Get secondary actions for a layout definition
|
|
192
|
-
*/
|
|
193
145
|
getSecondaryActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[];
|
|
194
146
|
/**
|
|
195
|
-
* Load
|
|
196
|
-
* Can be overridden in extended services (e.g., API layer)
|
|
197
|
-
*/
|
|
198
|
-
protected loadCategories(parentId?: string): Promise<AXPReportCategory[]>;
|
|
199
|
-
/**
|
|
200
|
-
* Load report definitions from entity service and cache results
|
|
201
|
-
* Can be overridden in extended services (e.g., API layer)
|
|
202
|
-
*/
|
|
203
|
-
protected loadReports(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
204
|
-
/**
|
|
205
|
-
* Load single report from entity service and cache result
|
|
206
|
-
* Can be overridden in extended services (e.g., API layer)
|
|
147
|
+
* Load single report from entity service and cache result.
|
|
148
|
+
* Can be overridden in extended services (e.g., API layer).
|
|
207
149
|
*/
|
|
208
150
|
protected loadReport(id: string): Promise<AXPReportDefinition | undefined>;
|
|
209
|
-
/**
|
|
210
|
-
* Breadth-first search through category hierarchy
|
|
211
|
-
*/
|
|
212
|
-
private searchCategoryInHierarchy;
|
|
213
|
-
/**
|
|
214
|
-
* Check if category has children (uses cached count)
|
|
215
|
-
*/
|
|
216
|
-
categoryHasChildren(categoryId: string): boolean;
|
|
217
|
-
/**
|
|
218
|
-
* Check if category has reports (uses cached count)
|
|
219
|
-
*/
|
|
220
|
-
categoryHasReports(categoryId: string): boolean;
|
|
221
|
-
/**
|
|
222
|
-
* Protected: Check if categories are cached for a parentId
|
|
223
|
-
* Used by extended services (e.g., mock) to determine if logging is needed
|
|
224
|
-
*/
|
|
225
|
-
protected isCategoriesCached(parentId?: string): boolean;
|
|
226
|
-
/**
|
|
227
|
-
* Protected: Check if a category is cached by ID
|
|
228
|
-
* Used by extended services (e.g., mock) to determine if logging is needed
|
|
229
|
-
*/
|
|
230
|
-
protected isCategoryCached(categoryId: string): boolean;
|
|
231
|
-
/**
|
|
232
|
-
* Protected: Check if reports are cached for a categoryId
|
|
233
|
-
* Used by extended services (e.g., mock) to determine if logging is needed
|
|
234
|
-
*/
|
|
235
|
-
protected isReportsCached(categoryId: string): boolean;
|
|
236
|
-
/**
|
|
237
|
-
* Protected: Check if a report is cached by ID
|
|
238
|
-
* Used by extended services (e.g., mock) to determine if logging is needed
|
|
239
|
-
*/
|
|
240
151
|
protected isReportCached(reportId: string): boolean;
|
|
241
|
-
/**
|
|
242
|
-
* Clear all caches
|
|
243
|
-
*/
|
|
244
152
|
clearAllCache(): void;
|
|
245
|
-
/**
|
|
246
|
-
* Clear categories cache only
|
|
247
|
-
*/
|
|
248
|
-
clearCategoriesCache(): void;
|
|
249
|
-
/**
|
|
250
|
-
* Clear reports cache only
|
|
251
|
-
*/
|
|
252
153
|
clearReportsCache(): void;
|
|
253
|
-
/**
|
|
254
|
-
* Execute report with given context
|
|
255
|
-
* Override in connectivity layer (mock/API) to implement report execution
|
|
256
|
-
*
|
|
257
|
-
* @param context - Layout execution context with reportId, layoutId, dataSource, and filters
|
|
258
|
-
* @returns Report execution result with layout and data
|
|
259
|
-
*/
|
|
260
|
-
executeReport(context: AXPLayoutExecutionContext): Promise<AXPExecutionReportCommandResult>;
|
|
261
|
-
/**
|
|
262
|
-
* Execute action by command name
|
|
263
|
-
* Override in connectivity layer (mock/API) to implement action execution
|
|
264
|
-
*
|
|
265
|
-
* @param commandName - Command name (e.g., 'download-report', 'print-report', 'export-report')
|
|
266
|
-
* @param options - Command options (e.g., { format: 'excel', pdfData: {...}, reportData: {...} })
|
|
267
|
-
*/
|
|
268
154
|
executeAction(commandName: string, options?: Record<string, unknown>): Promise<void>;
|
|
269
155
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPReportViewerService, never>;
|
|
270
156
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPReportViewerService>;
|
|
@@ -297,6 +183,76 @@ declare function AXLineChartReportMapper(data: Record<string, number>): AXLineCh
|
|
|
297
183
|
* }
|
|
298
184
|
*/
|
|
299
185
|
declare function convertContextDataToFilterClause(context: AXPContextData): AXPFilterClause;
|
|
186
|
+
type AXPReportPdfSource = {
|
|
187
|
+
url?: string;
|
|
188
|
+
base64?: string;
|
|
189
|
+
blob?: Blob;
|
|
190
|
+
filename?: string;
|
|
191
|
+
};
|
|
192
|
+
declare function queryResultToPdfSource(queryResult: AXPRuntimeQueryResult<unknown> | null | undefined): AXPReportPdfSource | null;
|
|
193
|
+
declare function queryResultToChartSeries(queryResult: AXPRuntimeQueryResult<unknown> | null | undefined, mapping?: AXPChartDataMapping | null): Record<string, number>;
|
|
194
|
+
|
|
195
|
+
type AXPReportDateRangeValue = 'today' | {
|
|
196
|
+
from: string;
|
|
197
|
+
to: string;
|
|
198
|
+
};
|
|
199
|
+
type AXPReportParameterValue = string | number | boolean | AXPReportDateRangeValue | Record<string, unknown>;
|
|
200
|
+
/** Local calendar date as `yyyy-MM-dd` (session "today" for report ranges). */
|
|
201
|
+
declare function formatReportDateOnly(date?: Date): string;
|
|
202
|
+
declare function resolveTodayDateRange(date?: Date): {
|
|
203
|
+
from: string;
|
|
204
|
+
to: string;
|
|
205
|
+
};
|
|
206
|
+
declare function isReportDateRangeObject(value: unknown): value is {
|
|
207
|
+
from?: unknown;
|
|
208
|
+
to?: unknown;
|
|
209
|
+
start?: unknown;
|
|
210
|
+
end?: unknown;
|
|
211
|
+
};
|
|
212
|
+
declare function toReportDateRangeFilterValue(range: {
|
|
213
|
+
from: string;
|
|
214
|
+
to: string;
|
|
215
|
+
}): {
|
|
216
|
+
operation: {
|
|
217
|
+
type: 'between';
|
|
218
|
+
};
|
|
219
|
+
value: {
|
|
220
|
+
from: string;
|
|
221
|
+
to: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Converts report default / binding values into filter-form context shape.
|
|
226
|
+
* - `'today'` and `{ from, to }` → `{ operation: between, value }`
|
|
227
|
+
* - existing filter objects are left unchanged
|
|
228
|
+
*/
|
|
229
|
+
declare function resolveReportFilterDefaultValue(value: unknown, now?: Date): unknown;
|
|
230
|
+
type ReportParameterDefaultSource = {
|
|
231
|
+
path: string;
|
|
232
|
+
widget?: {
|
|
233
|
+
defaultValue?: unknown;
|
|
234
|
+
options?: Record<string, unknown>;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
type ReportParameterGroupDefaultSource = {
|
|
238
|
+
parameters?: ReportParameterDefaultSource[];
|
|
239
|
+
};
|
|
240
|
+
declare function collectReportParameterDefaults(parameterGroups: ReportParameterGroupDefaultSource[] | undefined, now?: Date): Record<string, unknown>;
|
|
241
|
+
/**
|
|
242
|
+
* Resolves special parameter tokens after expression evaluation.
|
|
243
|
+
* - `dateRange: 'today'` → `{ from, to }` for the local calendar day
|
|
244
|
+
*/
|
|
245
|
+
declare function resolveReportParameterValues(parameters: Record<string, unknown> | undefined, now?: Date): Record<string, unknown>;
|
|
246
|
+
/**
|
|
247
|
+
* Maps entity-binding parameter declarations into OpenInPopup command parameters.
|
|
248
|
+
* Field paths become `context.eval` expressions; `today` and `{from,to}` stay literal.
|
|
249
|
+
*/
|
|
250
|
+
declare function mapEntityBindingParameters(parameters: Record<string, AXPReportParameterValue> | undefined): Record<string, unknown> | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* Flattens popup/filter parameters into report-viewer URL query params
|
|
253
|
+
* (`field.operation.type` + `field.value` / nested `from`/`to`).
|
|
254
|
+
*/
|
|
255
|
+
declare function flattenReportParametersToQueryParams(parameters: Record<string, unknown>): Record<string, string>;
|
|
300
256
|
|
|
301
257
|
interface AXPReportTableColumnViewModel {
|
|
302
258
|
field: string;
|
|
@@ -311,6 +267,8 @@ interface AXPReportTableColumnViewModel {
|
|
|
311
267
|
drillDisplayField?: string;
|
|
312
268
|
}
|
|
313
269
|
|
|
270
|
+
declare function reportLayoutPageIcon(icon: string | undefined, option: Pick<AXPLayoutSwitcherOption, 'type'>): string;
|
|
271
|
+
|
|
314
272
|
declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
315
273
|
protected layoutService: {
|
|
316
274
|
currentMode: _angular_core.Signal<_acorex_platform_framework_client_themes_shared.AXPThemeMode>;
|
|
@@ -378,6 +336,7 @@ declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
|
378
336
|
private readonly loadingDialog;
|
|
379
337
|
private readonly destroyRef;
|
|
380
338
|
private readonly reportViewerService;
|
|
339
|
+
private readonly entityService;
|
|
381
340
|
reportId: _angular_core.InputSignal<string | undefined>;
|
|
382
341
|
reportParameters: _angular_core.InputSignal<Record<string, any>>;
|
|
383
342
|
private filtersForm;
|
|
@@ -385,7 +344,6 @@ declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
|
385
344
|
reportDefinition: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportDefinition | null>;
|
|
386
345
|
currentLayout: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null>;
|
|
387
346
|
filterContext: _angular_core.Signal<AXPContextData>;
|
|
388
|
-
categoriesPath: _angular_core.Signal<any[]>;
|
|
389
347
|
allowFetchData: _angular_core.Signal<boolean>;
|
|
390
348
|
shouldExecuteReport: _angular_core.Signal<boolean>;
|
|
391
349
|
executionRequestId: _angular_core.Signal<number>;
|
|
@@ -395,7 +353,13 @@ declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
|
395
353
|
error: _angular_core.Signal<string | null>;
|
|
396
354
|
showRowIndexColumn: _angular_core.Signal<boolean>;
|
|
397
355
|
reportUserSettings: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportViewerUserSettings | null>;
|
|
398
|
-
|
|
356
|
+
runId: _angular_core.Signal<string | null>;
|
|
357
|
+
frozen: _angular_core.Signal<boolean>;
|
|
358
|
+
freeze: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportViewerFreeze | null>;
|
|
359
|
+
backgroundQueued: _angular_core.Signal<boolean>;
|
|
360
|
+
parametersReadonly: _angular_core.Signal<boolean>;
|
|
361
|
+
selectedLayoutIds: _angular_core.Signal<string[]>;
|
|
362
|
+
availableLayouts: _angular_core.Signal<AXPLayoutSwitcherOption[]>;
|
|
399
363
|
defaultLayout: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null>;
|
|
400
364
|
activeLayoutId: _angular_core.Signal<string | null>;
|
|
401
365
|
layoutType: _angular_core.Signal<"table" | "chart" | "pdf" | null>;
|
|
@@ -407,25 +371,36 @@ declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
|
407
371
|
hasError: _angular_core.Signal<boolean>;
|
|
408
372
|
canExecute: _angular_core.Signal<boolean>;
|
|
409
373
|
hasMultipleLayouts: _angular_core.Signal<boolean>;
|
|
410
|
-
title: _angular_core.Signal<
|
|
411
|
-
description: _angular_core.Signal<
|
|
374
|
+
title: _angular_core.Signal<AXPMultiLanguageString>;
|
|
375
|
+
description: _angular_core.Signal<AXPMultiLanguageString | null>;
|
|
412
376
|
formDefinition: _angular_core.Signal<_acorex_platform_framework_client_layout_builder.AXPDynamicFormDefinition>;
|
|
413
377
|
isTableLayout: _angular_core.Signal<boolean>;
|
|
414
378
|
isChartLayout: _angular_core.Signal<boolean>;
|
|
415
379
|
isPdfLayout: _angular_core.Signal<boolean>;
|
|
416
380
|
hasUnappliedFilters: _angular_core.Signal<boolean>;
|
|
417
|
-
canSwitchLayout: _angular_core.Signal<boolean>;
|
|
418
381
|
canSelectRows: _angular_core.Signal<boolean | undefined>;
|
|
419
382
|
tableLayoutUserSettings: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportTableLayoutUserState | null>;
|
|
420
383
|
reportId: _angular_core.Signal<string | null>;
|
|
384
|
+
isFrozen: _angular_core.Signal<boolean>;
|
|
385
|
+
isBackgroundQueued: _angular_core.Signal<boolean>;
|
|
386
|
+
isBackgroundReportMode: _angular_core.Signal<boolean>;
|
|
387
|
+
hasSelectedBackgroundLayouts: _angular_core.Signal<boolean>;
|
|
388
|
+
areParametersReadonly: _angular_core.Signal<boolean>;
|
|
389
|
+
canSwitchLayout: _angular_core.Signal<boolean>;
|
|
390
|
+
generationMode: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportGenerationMode>;
|
|
421
391
|
loadReport: (reportId: string) => Promise<void>;
|
|
422
392
|
switchLayout: (layoutId: string) => void;
|
|
393
|
+
isBackgroundLayoutSelected: (layoutId: string) => boolean;
|
|
394
|
+
setBackgroundLayoutSelected: (layoutId: string, selected: boolean) => void;
|
|
423
395
|
saveTableColumnOrder: (columns: AXPReportTableColumnViewModel[]) => Promise<void>;
|
|
424
396
|
saveTableColumnWidth: (field: string, width: number, columns: AXPReportTableColumnViewModel[]) => Promise<void>;
|
|
425
|
-
saveTableSorts: (sorts:
|
|
397
|
+
saveTableSorts: (sorts: _acorex_platform_framework_shared_entity.AXPQuerySort[]) => Promise<void>;
|
|
426
398
|
saveTablePageSize: (pageSize: number) => Promise<void>;
|
|
427
399
|
executeReport: () => Promise<void>;
|
|
428
|
-
fetchData: (query?: _acorex_cdk_common.AXDataSourceQuery) => Promise<
|
|
400
|
+
fetchData: (query?: _acorex_cdk_common.AXDataSourceQuery) => Promise<_acorex_platform_framework_shared_core.AXPRuntimeQueryResult<unknown> | null>;
|
|
401
|
+
generateInBackground: () => Promise<void>;
|
|
402
|
+
nudgeFetch: () => void;
|
|
403
|
+
loadFrozenRun: (runId: string) => Promise<void>;
|
|
429
404
|
applyDrillView: (options: {
|
|
430
405
|
hideColumnFields: string[];
|
|
431
406
|
}) => void;
|
|
@@ -442,7 +417,6 @@ declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
|
442
417
|
reportDefinition: _acorex_platform_module_report_management_client.AXPReportDefinition | null;
|
|
443
418
|
currentLayout: _acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null;
|
|
444
419
|
filterContext: AXPContextData;
|
|
445
|
-
categoriesPath: any[];
|
|
446
420
|
allowFetchData: boolean;
|
|
447
421
|
shouldExecuteReport: boolean;
|
|
448
422
|
executionRequestId: number;
|
|
@@ -452,14 +426,21 @@ declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
|
452
426
|
error: string | null;
|
|
453
427
|
showRowIndexColumn: boolean;
|
|
454
428
|
reportUserSettings: _acorex_platform_module_report_management_client.AXPReportViewerUserSettings | null;
|
|
429
|
+
runId: string | null;
|
|
430
|
+
frozen: boolean;
|
|
431
|
+
freeze: _acorex_platform_module_report_management_client.AXPReportViewerFreeze | null;
|
|
432
|
+
backgroundQueued: boolean;
|
|
433
|
+
parametersReadonly: boolean;
|
|
434
|
+
selectedLayoutIds: string[];
|
|
455
435
|
}>;
|
|
456
436
|
private readonly watchNavigationLoading;
|
|
457
437
|
private loadingDialogRef;
|
|
458
438
|
private isDialogOpening;
|
|
439
|
+
private lastReportRouteKey;
|
|
459
440
|
constructor();
|
|
460
441
|
protected showFiltersPanel: () => boolean;
|
|
461
442
|
protected showReportDisplay: () => boolean;
|
|
462
|
-
private
|
|
443
|
+
private reportsListPath;
|
|
463
444
|
protected defaultLayout: () => AXPGridLayoutOptions;
|
|
464
445
|
protected compactLayout: () => AXPGridLayoutOptions;
|
|
465
446
|
ngOnInit(): Promise<void>;
|
|
@@ -513,6 +494,8 @@ declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
|
513
494
|
protected handleFiltersChange(event: AXPContextData): void;
|
|
514
495
|
protected handleFiltersInitiated(event: AXPContextData): void;
|
|
515
496
|
protected handleExecuteReport(): Promise<void>;
|
|
497
|
+
protected handleGenerateInBackground(): Promise<void>;
|
|
498
|
+
protected canGenerateInBackground(): boolean;
|
|
516
499
|
protected handleRefresh(): void;
|
|
517
500
|
protected handleClearFilters(): void;
|
|
518
501
|
/**
|
|
@@ -531,11 +514,15 @@ declare class AXPReportViewerPageComponent extends AXPPageLayoutBaseComponent {
|
|
|
531
514
|
* @param format - Export format (excel, csv, pdf, image)
|
|
532
515
|
*/
|
|
533
516
|
protected handleExportReport(format?: string): Promise<void>;
|
|
517
|
+
protected readonly layoutPageIcon: typeof reportLayoutPageIcon;
|
|
518
|
+
protected getLayoutSelectionLabel(layout: AXPLayoutSwitcherOption): AXPMultiLanguageString;
|
|
519
|
+
protected handleBackgroundLayoutToggle(layoutId: string, selected: boolean): void;
|
|
534
520
|
protected getPageBreadcrumbs(): Promise<AXPBreadcrumbItem[]>;
|
|
535
|
-
getPageTitle(): Promise<
|
|
536
|
-
getPageDescription(): Promise<
|
|
521
|
+
getPageTitle(): Promise<AXPMultiLanguageString>;
|
|
522
|
+
getPageDescription(): Promise<AXPMultiLanguageString | null>;
|
|
537
523
|
protected getPageIcon(): string | null;
|
|
538
|
-
protected getTitleActions():
|
|
524
|
+
protected getTitleActions(): Promise<AXPActionMenuItem[]>;
|
|
525
|
+
private resolveLayoutSwitcherTitle;
|
|
539
526
|
getBackButton(): Promise<AXPBackButton | null>;
|
|
540
527
|
onBackButtonClick(): Promise<void>;
|
|
541
528
|
getPrimaryMenuItems(): Promise<AXPActionMenuItem[]>;
|
|
@@ -549,7 +536,6 @@ declare const AXPReportViewerViewModel: _angular_core.Type<{
|
|
|
549
536
|
reportDefinition: _angular_core.Signal<AXPReportDefinition | null>;
|
|
550
537
|
currentLayout: _angular_core.Signal<AXPReportLayoutDefinition | null>;
|
|
551
538
|
filterContext: _angular_core.Signal<AXPContextData>;
|
|
552
|
-
categoriesPath: _angular_core.Signal<any[]>;
|
|
553
539
|
allowFetchData: _angular_core.Signal<boolean>;
|
|
554
540
|
shouldExecuteReport: _angular_core.Signal<boolean>;
|
|
555
541
|
executionRequestId: _angular_core.Signal<number>;
|
|
@@ -559,6 +545,12 @@ declare const AXPReportViewerViewModel: _angular_core.Type<{
|
|
|
559
545
|
error: _angular_core.Signal<string | null>;
|
|
560
546
|
showRowIndexColumn: _angular_core.Signal<boolean>;
|
|
561
547
|
reportUserSettings: _angular_core.Signal<AXPReportViewerUserSettings | null>;
|
|
548
|
+
runId: _angular_core.Signal<string | null>;
|
|
549
|
+
frozen: _angular_core.Signal<boolean>;
|
|
550
|
+
freeze: _angular_core.Signal<AXPReportViewerFreeze | null>;
|
|
551
|
+
backgroundQueued: _angular_core.Signal<boolean>;
|
|
552
|
+
parametersReadonly: _angular_core.Signal<boolean>;
|
|
553
|
+
selectedLayoutIds: _angular_core.Signal<string[]>;
|
|
562
554
|
availableLayouts: _angular_core.Signal<AXPLayoutSwitcherOption[]>;
|
|
563
555
|
defaultLayout: _angular_core.Signal<AXPReportLayoutDefinition | null>;
|
|
564
556
|
activeLayoutId: _angular_core.Signal<string | null>;
|
|
@@ -571,25 +563,36 @@ declare const AXPReportViewerViewModel: _angular_core.Type<{
|
|
|
571
563
|
hasError: _angular_core.Signal<boolean>;
|
|
572
564
|
canExecute: _angular_core.Signal<boolean>;
|
|
573
565
|
hasMultipleLayouts: _angular_core.Signal<boolean>;
|
|
574
|
-
title: _angular_core.Signal<
|
|
575
|
-
description: _angular_core.Signal<
|
|
566
|
+
title: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPMultiLanguageString>;
|
|
567
|
+
description: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPMultiLanguageString | null>;
|
|
576
568
|
formDefinition: _angular_core.Signal<AXPDynamicFormDefinition>;
|
|
577
569
|
isTableLayout: _angular_core.Signal<boolean>;
|
|
578
570
|
isChartLayout: _angular_core.Signal<boolean>;
|
|
579
571
|
isPdfLayout: _angular_core.Signal<boolean>;
|
|
580
572
|
hasUnappliedFilters: _angular_core.Signal<boolean>;
|
|
581
|
-
canSwitchLayout: _angular_core.Signal<boolean>;
|
|
582
573
|
canSelectRows: _angular_core.Signal<boolean | undefined>;
|
|
583
574
|
tableLayoutUserSettings: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportTableLayoutUserState | null>;
|
|
584
575
|
reportId: _angular_core.Signal<string | null>;
|
|
576
|
+
isFrozen: _angular_core.Signal<boolean>;
|
|
577
|
+
isBackgroundQueued: _angular_core.Signal<boolean>;
|
|
578
|
+
isBackgroundReportMode: _angular_core.Signal<boolean>;
|
|
579
|
+
hasSelectedBackgroundLayouts: _angular_core.Signal<boolean>;
|
|
580
|
+
areParametersReadonly: _angular_core.Signal<boolean>;
|
|
581
|
+
canSwitchLayout: _angular_core.Signal<boolean>;
|
|
582
|
+
generationMode: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportGenerationMode>;
|
|
585
583
|
loadReport: (reportId: string) => Promise<void>;
|
|
586
584
|
switchLayout: (layoutId: string) => void;
|
|
585
|
+
isBackgroundLayoutSelected: (layoutId: string) => boolean;
|
|
586
|
+
setBackgroundLayoutSelected: (layoutId: string, selected: boolean) => void;
|
|
587
587
|
saveTableColumnOrder: (columns: AXPReportTableColumnViewModel[]) => Promise<void>;
|
|
588
588
|
saveTableColumnWidth: (field: string, width: number, columns: AXPReportTableColumnViewModel[]) => Promise<void>;
|
|
589
589
|
saveTableSorts: (sorts: AXPQuerySort[]) => Promise<void>;
|
|
590
590
|
saveTablePageSize: (pageSize: number) => Promise<void>;
|
|
591
591
|
executeReport: () => Promise<void>;
|
|
592
|
-
fetchData: (query?: AXDataSourceQuery) => Promise<
|
|
592
|
+
fetchData: (query?: AXDataSourceQuery) => Promise<AXPRuntimeQueryResult<unknown> | null>;
|
|
593
|
+
generateInBackground: () => Promise<void>;
|
|
594
|
+
nudgeFetch: () => void;
|
|
595
|
+
loadFrozenRun: (runId: string) => Promise<void>;
|
|
593
596
|
applyDrillView: (options: {
|
|
594
597
|
hideColumnFields: string[];
|
|
595
598
|
}) => void;
|
|
@@ -606,7 +609,6 @@ declare const AXPReportViewerViewModel: _angular_core.Type<{
|
|
|
606
609
|
reportDefinition: AXPReportDefinition | null;
|
|
607
610
|
currentLayout: AXPReportLayoutDefinition | null;
|
|
608
611
|
filterContext: AXPContextData;
|
|
609
|
-
categoriesPath: any[];
|
|
610
612
|
allowFetchData: boolean;
|
|
611
613
|
shouldExecuteReport: boolean;
|
|
612
614
|
executionRequestId: number;
|
|
@@ -616,6 +618,12 @@ declare const AXPReportViewerViewModel: _angular_core.Type<{
|
|
|
616
618
|
error: string | null;
|
|
617
619
|
showRowIndexColumn: boolean;
|
|
618
620
|
reportUserSettings: AXPReportViewerUserSettings | null;
|
|
621
|
+
runId: string | null;
|
|
622
|
+
frozen: boolean;
|
|
623
|
+
freeze: AXPReportViewerFreeze | null;
|
|
624
|
+
backgroundQueued: boolean;
|
|
625
|
+
parametersReadonly: boolean;
|
|
626
|
+
selectedLayoutIds: string[];
|
|
619
627
|
}>>;
|
|
620
628
|
|
|
621
629
|
declare class AXPReportBarChartViewComponent {
|
|
@@ -623,17 +631,22 @@ declare class AXPReportBarChartViewComponent {
|
|
|
623
631
|
protected readonly vm: {
|
|
624
632
|
reportDefinition: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportDefinition | null>;
|
|
625
633
|
currentLayout: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null>;
|
|
626
|
-
filterContext: _angular_core.Signal<
|
|
627
|
-
categoriesPath: _angular_core.Signal<any[]>;
|
|
634
|
+
filterContext: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPContextData>;
|
|
628
635
|
allowFetchData: _angular_core.Signal<boolean>;
|
|
629
636
|
shouldExecuteReport: _angular_core.Signal<boolean>;
|
|
630
637
|
executionRequestId: _angular_core.Signal<number>;
|
|
631
|
-
lastAppliedFilterContext: _angular_core.Signal<
|
|
638
|
+
lastAppliedFilterContext: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPContextData | null>;
|
|
632
639
|
hasBeenExecuted: _angular_core.Signal<boolean>;
|
|
633
640
|
status: _angular_core.Signal<AXPPageStatus>;
|
|
634
641
|
error: _angular_core.Signal<string | null>;
|
|
635
642
|
showRowIndexColumn: _angular_core.Signal<boolean>;
|
|
636
643
|
reportUserSettings: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportViewerUserSettings | null>;
|
|
644
|
+
runId: _angular_core.Signal<string | null>;
|
|
645
|
+
frozen: _angular_core.Signal<boolean>;
|
|
646
|
+
freeze: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportViewerFreeze | null>;
|
|
647
|
+
backgroundQueued: _angular_core.Signal<boolean>;
|
|
648
|
+
parametersReadonly: _angular_core.Signal<boolean>;
|
|
649
|
+
selectedLayoutIds: _angular_core.Signal<string[]>;
|
|
637
650
|
availableLayouts: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPLayoutSwitcherOption[]>;
|
|
638
651
|
defaultLayout: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null>;
|
|
639
652
|
activeLayoutId: _angular_core.Signal<string | null>;
|
|
@@ -646,25 +659,36 @@ declare class AXPReportBarChartViewComponent {
|
|
|
646
659
|
hasError: _angular_core.Signal<boolean>;
|
|
647
660
|
canExecute: _angular_core.Signal<boolean>;
|
|
648
661
|
hasMultipleLayouts: _angular_core.Signal<boolean>;
|
|
649
|
-
title: _angular_core.Signal<
|
|
650
|
-
description: _angular_core.Signal<
|
|
662
|
+
title: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPMultiLanguageString>;
|
|
663
|
+
description: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPMultiLanguageString | null>;
|
|
651
664
|
formDefinition: _angular_core.Signal<dist_libs_framework_client_types_acorex_platform_framework_client_layout_builder.AXPDynamicFormDefinition>;
|
|
652
665
|
isTableLayout: _angular_core.Signal<boolean>;
|
|
653
666
|
isChartLayout: _angular_core.Signal<boolean>;
|
|
654
667
|
isPdfLayout: _angular_core.Signal<boolean>;
|
|
655
668
|
hasUnappliedFilters: _angular_core.Signal<boolean>;
|
|
656
|
-
canSwitchLayout: _angular_core.Signal<boolean>;
|
|
657
669
|
canSelectRows: _angular_core.Signal<boolean | undefined>;
|
|
658
670
|
tableLayoutUserSettings: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportTableLayoutUserState | null>;
|
|
659
671
|
reportId: _angular_core.Signal<string | null>;
|
|
672
|
+
isFrozen: _angular_core.Signal<boolean>;
|
|
673
|
+
isBackgroundQueued: _angular_core.Signal<boolean>;
|
|
674
|
+
isBackgroundReportMode: _angular_core.Signal<boolean>;
|
|
675
|
+
hasSelectedBackgroundLayouts: _angular_core.Signal<boolean>;
|
|
676
|
+
areParametersReadonly: _angular_core.Signal<boolean>;
|
|
677
|
+
canSwitchLayout: _angular_core.Signal<boolean>;
|
|
678
|
+
generationMode: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportGenerationMode>;
|
|
660
679
|
loadReport: (reportId: string) => Promise<void>;
|
|
661
680
|
switchLayout: (layoutId: string) => void;
|
|
681
|
+
isBackgroundLayoutSelected: (layoutId: string) => boolean;
|
|
682
|
+
setBackgroundLayoutSelected: (layoutId: string, selected: boolean) => void;
|
|
662
683
|
saveTableColumnOrder: (columns: AXPReportTableColumnViewModel[]) => Promise<void>;
|
|
663
684
|
saveTableColumnWidth: (field: string, width: number, columns: AXPReportTableColumnViewModel[]) => Promise<void>;
|
|
664
|
-
saveTableSorts: (sorts:
|
|
685
|
+
saveTableSorts: (sorts: _acorex_platform_framework_shared_entity.AXPQuerySort[]) => Promise<void>;
|
|
665
686
|
saveTablePageSize: (pageSize: number) => Promise<void>;
|
|
666
687
|
executeReport: () => Promise<void>;
|
|
667
|
-
fetchData: (query?: _acorex_cdk_common.AXDataSourceQuery) => Promise<
|
|
688
|
+
fetchData: (query?: _acorex_cdk_common.AXDataSourceQuery) => Promise<_acorex_platform_framework_shared_core.AXPRuntimeQueryResult<unknown> | null>;
|
|
689
|
+
generateInBackground: () => Promise<void>;
|
|
690
|
+
nudgeFetch: () => void;
|
|
691
|
+
loadFrozenRun: (runId: string) => Promise<void>;
|
|
668
692
|
applyDrillView: (options: {
|
|
669
693
|
hideColumnFields: string[];
|
|
670
694
|
}) => void;
|
|
@@ -680,17 +704,22 @@ declare class AXPReportBarChartViewComponent {
|
|
|
680
704
|
} & _ngrx_signals.StateSource<{
|
|
681
705
|
reportDefinition: _acorex_platform_module_report_management_client.AXPReportDefinition | null;
|
|
682
706
|
currentLayout: _acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null;
|
|
683
|
-
filterContext:
|
|
684
|
-
categoriesPath: any[];
|
|
707
|
+
filterContext: _acorex_platform_framework_shared_core.AXPContextData;
|
|
685
708
|
allowFetchData: boolean;
|
|
686
709
|
shouldExecuteReport: boolean;
|
|
687
710
|
executionRequestId: number;
|
|
688
|
-
lastAppliedFilterContext:
|
|
711
|
+
lastAppliedFilterContext: _acorex_platform_framework_shared_core.AXPContextData | null;
|
|
689
712
|
hasBeenExecuted: boolean;
|
|
690
713
|
status: AXPPageStatus;
|
|
691
714
|
error: string | null;
|
|
692
715
|
showRowIndexColumn: boolean;
|
|
693
716
|
reportUserSettings: _acorex_platform_module_report_management_client.AXPReportViewerUserSettings | null;
|
|
717
|
+
runId: string | null;
|
|
718
|
+
frozen: boolean;
|
|
719
|
+
freeze: _acorex_platform_module_report_management_client.AXPReportViewerFreeze | null;
|
|
720
|
+
backgroundQueued: boolean;
|
|
721
|
+
parametersReadonly: boolean;
|
|
722
|
+
selectedLayoutIds: string[];
|
|
694
723
|
}>;
|
|
695
724
|
protected readonly AXPPageStatus: typeof AXPPageStatus;
|
|
696
725
|
/**
|
|
@@ -738,7 +767,6 @@ declare class AXPReportTableViewComponent {
|
|
|
738
767
|
reportDefinition: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportDefinition | null>;
|
|
739
768
|
currentLayout: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null>;
|
|
740
769
|
filterContext: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPContextData>;
|
|
741
|
-
categoriesPath: _angular_core.Signal<any[]>;
|
|
742
770
|
allowFetchData: _angular_core.Signal<boolean>;
|
|
743
771
|
shouldExecuteReport: _angular_core.Signal<boolean>;
|
|
744
772
|
executionRequestId: _angular_core.Signal<number>;
|
|
@@ -748,6 +776,12 @@ declare class AXPReportTableViewComponent {
|
|
|
748
776
|
error: _angular_core.Signal<string | null>;
|
|
749
777
|
showRowIndexColumn: _angular_core.Signal<boolean>;
|
|
750
778
|
reportUserSettings: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportViewerUserSettings | null>;
|
|
779
|
+
runId: _angular_core.Signal<string | null>;
|
|
780
|
+
frozen: _angular_core.Signal<boolean>;
|
|
781
|
+
freeze: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportViewerFreeze | null>;
|
|
782
|
+
backgroundQueued: _angular_core.Signal<boolean>;
|
|
783
|
+
parametersReadonly: _angular_core.Signal<boolean>;
|
|
784
|
+
selectedLayoutIds: _angular_core.Signal<string[]>;
|
|
751
785
|
availableLayouts: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPLayoutSwitcherOption[]>;
|
|
752
786
|
defaultLayout: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null>;
|
|
753
787
|
activeLayoutId: _angular_core.Signal<string | null>;
|
|
@@ -760,25 +794,36 @@ declare class AXPReportTableViewComponent {
|
|
|
760
794
|
hasError: _angular_core.Signal<boolean>;
|
|
761
795
|
canExecute: _angular_core.Signal<boolean>;
|
|
762
796
|
hasMultipleLayouts: _angular_core.Signal<boolean>;
|
|
763
|
-
title: _angular_core.Signal<
|
|
764
|
-
description: _angular_core.Signal<
|
|
797
|
+
title: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPMultiLanguageString>;
|
|
798
|
+
description: _angular_core.Signal<_acorex_platform_framework_shared_core.AXPMultiLanguageString | null>;
|
|
765
799
|
formDefinition: _angular_core.Signal<dist_libs_framework_client_types_acorex_platform_framework_client_layout_builder.AXPDynamicFormDefinition>;
|
|
766
800
|
isTableLayout: _angular_core.Signal<boolean>;
|
|
767
801
|
isChartLayout: _angular_core.Signal<boolean>;
|
|
768
802
|
isPdfLayout: _angular_core.Signal<boolean>;
|
|
769
803
|
hasUnappliedFilters: _angular_core.Signal<boolean>;
|
|
770
|
-
canSwitchLayout: _angular_core.Signal<boolean>;
|
|
771
804
|
canSelectRows: _angular_core.Signal<boolean | undefined>;
|
|
772
805
|
tableLayoutUserSettings: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportTableLayoutUserState | null>;
|
|
773
806
|
reportId: _angular_core.Signal<string | null>;
|
|
807
|
+
isFrozen: _angular_core.Signal<boolean>;
|
|
808
|
+
isBackgroundQueued: _angular_core.Signal<boolean>;
|
|
809
|
+
isBackgroundReportMode: _angular_core.Signal<boolean>;
|
|
810
|
+
hasSelectedBackgroundLayouts: _angular_core.Signal<boolean>;
|
|
811
|
+
areParametersReadonly: _angular_core.Signal<boolean>;
|
|
812
|
+
canSwitchLayout: _angular_core.Signal<boolean>;
|
|
813
|
+
generationMode: _angular_core.Signal<_acorex_platform_module_report_management_client.AXPReportGenerationMode>;
|
|
774
814
|
loadReport: (reportId: string) => Promise<void>;
|
|
775
815
|
switchLayout: (layoutId: string) => void;
|
|
816
|
+
isBackgroundLayoutSelected: (layoutId: string) => boolean;
|
|
817
|
+
setBackgroundLayoutSelected: (layoutId: string, selected: boolean) => void;
|
|
776
818
|
saveTableColumnOrder: (columns: AXPReportTableColumnViewModel[]) => Promise<void>;
|
|
777
819
|
saveTableColumnWidth: (field: string, width: number, columns: AXPReportTableColumnViewModel[]) => Promise<void>;
|
|
778
820
|
saveTableSorts: (sorts: AXPQuerySort[]) => Promise<void>;
|
|
779
821
|
saveTablePageSize: (pageSize: number) => Promise<void>;
|
|
780
822
|
executeReport: () => Promise<void>;
|
|
781
|
-
fetchData: (query?: AXDataSourceQuery) => Promise<
|
|
823
|
+
fetchData: (query?: AXDataSourceQuery) => Promise<_acorex_platform_framework_shared_core.AXPRuntimeQueryResult<unknown> | null>;
|
|
824
|
+
generateInBackground: () => Promise<void>;
|
|
825
|
+
nudgeFetch: () => void;
|
|
826
|
+
loadFrozenRun: (runId: string) => Promise<void>;
|
|
782
827
|
applyDrillView: (options: {
|
|
783
828
|
hideColumnFields: string[];
|
|
784
829
|
}) => void;
|
|
@@ -795,7 +840,6 @@ declare class AXPReportTableViewComponent {
|
|
|
795
840
|
reportDefinition: _acorex_platform_module_report_management_client.AXPReportDefinition | null;
|
|
796
841
|
currentLayout: _acorex_platform_module_report_management_client.AXPReportLayoutDefinition | null;
|
|
797
842
|
filterContext: _acorex_platform_framework_shared_core.AXPContextData;
|
|
798
|
-
categoriesPath: any[];
|
|
799
843
|
allowFetchData: boolean;
|
|
800
844
|
shouldExecuteReport: boolean;
|
|
801
845
|
executionRequestId: number;
|
|
@@ -805,6 +849,12 @@ declare class AXPReportTableViewComponent {
|
|
|
805
849
|
error: string | null;
|
|
806
850
|
showRowIndexColumn: boolean;
|
|
807
851
|
reportUserSettings: _acorex_platform_module_report_management_client.AXPReportViewerUserSettings | null;
|
|
852
|
+
runId: string | null;
|
|
853
|
+
frozen: boolean;
|
|
854
|
+
freeze: _acorex_platform_module_report_management_client.AXPReportViewerFreeze | null;
|
|
855
|
+
backgroundQueued: boolean;
|
|
856
|
+
parametersReadonly: boolean;
|
|
857
|
+
selectedLayoutIds: string[];
|
|
808
858
|
}>;
|
|
809
859
|
protected readonly commandService: AXPCommandService;
|
|
810
860
|
private readonly expressionEvaluator;
|
|
@@ -845,5 +895,5 @@ declare class AXPReportTableViewComponent {
|
|
|
845
895
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPReportTableViewComponent, "axp-report-table-view", never, {}, {}, never, never, true, never>;
|
|
846
896
|
}
|
|
847
897
|
|
|
848
|
-
export { AXBarChartReportMapper, AXLineChartReportMapper, AXMPermissionDefinitionProvider, AXMReportManagementModule,
|
|
849
|
-
export type {
|
|
898
|
+
export { AXBarChartReportMapper, AXLineChartReportMapper, AXMPermissionDefinitionProvider, AXMReportManagementModule, AXPOpenReportInPopupCommand, AXPOpenReportViewerCommand, AXPReportBarChartViewComponent, AXPReportTableViewComponent, AXPReportViewerPageComponent, AXPReportViewerService, AXPReportViewerViewModel, AXPieChartReportMapper, collectReportParameterDefaults, convertContextDataToFilterClause, flattenReportParametersToQueryParams, formatReportDateOnly, isReportDateRangeObject, mapEntityBindingParameters, queryResultToChartSeries, queryResultToPdfSource, resolveReportFilterDefaultValue, resolveReportParameterValues, resolveTodayDateRange, toReportDateRangeFilterValue };
|
|
899
|
+
export type { AXPOpenReportInPopupCommandInput, AXPOpenReportViewerCommandInput, AXPReportDateRangeValue, AXPReportParameterValue, AXPReportPdfSource, AXPReportTableColumnUserState, AXPReportTableLayoutUserState, AXPReportViewerUserSettings };
|