bways-report 0.2.13 → 0.2.14
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/esm2022/lib/core/services/report-execution-query.service.mjs +67 -0
- package/esm2022/lib/features/designer/components/property-editor/parameter-binding-editor.component.mjs +21 -11
- package/esm2022/lib/features/designer/components/property-editor/property-editor-grid.component.mjs +21 -4
- package/esm2022/lib/features/designer/components/property-editor/property-editor.component.mjs +2 -2
- package/esm2022/lib/features/designer/components/property-editor/workflow-source-editor.component.mjs +67 -13
- package/esm2022/lib/features/runtime/report-execution.service.mjs +7 -2
- package/fesm2022/bways-report.mjs +174 -26
- package/fesm2022/bways-report.mjs.map +1 -1
- package/lib/core/services/report-execution-query.service.d.ts +18 -0
- package/lib/features/designer/components/property-editor/parameter-binding-editor.component.d.ts +3 -0
- package/lib/features/designer/components/property-editor/property-editor-grid.component.d.ts +7 -0
- package/lib/features/designer/components/property-editor/workflow-source-editor.component.d.ts +4 -0
- package/lib/features/runtime/report-execution.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReportDataSourceDefinition } from '../models/report-datasource.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ReportExecutionQuery {
|
|
4
|
+
sql: string | null;
|
|
5
|
+
error: string | null;
|
|
6
|
+
requestedAt: Date;
|
|
7
|
+
}
|
|
8
|
+
/** In-memory diagnostic snapshots, isolated by source object and never persisted in reports. */
|
|
9
|
+
export declare class ReportExecutionQueryService {
|
|
10
|
+
private readonly queries;
|
|
11
|
+
private entry;
|
|
12
|
+
lastQuery(source: ReportDataSourceDefinition | undefined): ReportExecutionQuery | null;
|
|
13
|
+
record(source: ReportDataSourceDefinition, parameters: Record<string, unknown>): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportExecutionQueryService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReportExecutionQueryService>;
|
|
16
|
+
}
|
|
17
|
+
/** SQL equivalent for inspection/copying; the adapter still receives parameterized arguments. */
|
|
18
|
+
export declare function formatProcedureExecution(source: ReportDataSourceDefinition, parameters: Record<string, unknown>): string;
|
package/lib/features/designer/components/property-editor/parameter-binding-editor.component.d.ts
CHANGED
|
@@ -28,6 +28,9 @@ export declare class ParameterBindingEditorComponent {
|
|
|
28
28
|
readonly selectionSources: import("@angular/core").InputSignal<SelectionBindingSource[]>;
|
|
29
29
|
readonly effectiveSelectionSources: import("@angular/core").Signal<SelectionBindingSource[]>;
|
|
30
30
|
readonly selectedRowSource: import("@angular/core").Signal<SelectionBindingSource | undefined>;
|
|
31
|
+
readonly standaloneSelectionSources: import("@angular/core").Signal<SelectionBindingSource[]>;
|
|
32
|
+
readonly selectedFieldChoice: import("@angular/core").Signal<string>;
|
|
33
|
+
readonly selectedTriggerType: import("@angular/core").Signal<string>;
|
|
31
34
|
readonly selectedRowColumnChoice: import("@angular/core").Signal<string>;
|
|
32
35
|
readonly selectedRowColumns: import("@angular/core").Signal<{
|
|
33
36
|
field: string;
|
package/lib/features/designer/components/property-editor/property-editor-grid.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReportExecutionQuery } from '../../../../core/services/report-execution-query.service';
|
|
1
2
|
import { GridColumnDefinition, GridRowClickAction, ReportGridDefinition } from '../../../../core/models/report-grid.model';
|
|
2
3
|
import { ReportDataSourceDefinition } from '../../../../core/models/report-datasource.model';
|
|
3
4
|
import { ReportComponentDefinition } from '../../../../core/models/report-component.model';
|
|
@@ -6,6 +7,12 @@ import { SearchableSelectOption } from '../../../../primitives/components';
|
|
|
6
7
|
import { SelectionBindingSource } from './parameter-binding-editor.component';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class PropertyEditorGridComponent {
|
|
10
|
+
private readonly executionQuery;
|
|
11
|
+
private readonly clipboard;
|
|
12
|
+
readonly lastExecutionQuery: import("@angular/core").Signal<ReportExecutionQuery | null>;
|
|
13
|
+
private readonly queryCopyResult;
|
|
14
|
+
readonly queryCopyStatus: import("@angular/core").Signal<string>;
|
|
15
|
+
copyExecutionQuery(): void;
|
|
9
16
|
private readonly endpointScope;
|
|
10
17
|
private readonly dataDiscovery;
|
|
11
18
|
private readonly endpoints;
|
package/lib/features/designer/components/property-editor/workflow-source-editor.component.d.ts
CHANGED
|
@@ -40,6 +40,10 @@ export declare class WorkflowSourceEditorComponent {
|
|
|
40
40
|
setMapping(name: string, value: string | number | boolean): void;
|
|
41
41
|
bindSelection(name: string, column: string): void;
|
|
42
42
|
detectColumns(): void;
|
|
43
|
+
readonly visibleColumnCount: import("@angular/core").Signal<number>;
|
|
44
|
+
readonly allColumnsSelected: import("@angular/core").Signal<boolean>;
|
|
45
|
+
readonly someColumnsSelected: import("@angular/core").Signal<boolean>;
|
|
46
|
+
toggleAllColumns(visible: boolean): void;
|
|
43
47
|
columnChange(index: number, patch: Partial<GridColumnDefinition>): void;
|
|
44
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowSourceEditorComponent, never>;
|
|
45
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowSourceEditorComponent, "rpt-workflow-source-editor", never, { "source": { "alias": "source"; "required": true; "isSignal": true; }; "grid": { "alias": "grid"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "components": { "alias": "components"; "required": false; "isSignal": true; }; "selectionSources": { "alias": "selectionSources"; "required": false; "isSignal": true; }; "selectionKey": { "alias": "selectionKey"; "required": false; "isSignal": true; }; "selectedColumns": { "alias": "selectedColumns"; "required": false; "isSignal": true; }; "previewValues": { "alias": "previewValues"; "required": false; "isSignal": true; }; }, { "sourceChange": "sourceChange"; "gridChange": "gridChange"; }, never, never, true, never>;
|
|
@@ -6,6 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Live Preview and the designer canvas so all three behave identically.
|
|
7
7
|
*/
|
|
8
8
|
export declare class ReportExecutionService {
|
|
9
|
+
private readonly executionQuery;
|
|
9
10
|
private readonly config;
|
|
10
11
|
private readonly endpoints;
|
|
11
12
|
private guard;
|