bways-report 0.2.10 → 0.2.12
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/formula/formula-columns.mjs +7 -7
- package/esm2022/lib/core/models/index.mjs +2 -1
- package/esm2022/lib/core/models/report-component.model.mjs +1 -1
- package/esm2022/lib/core/models/report-definition.model.mjs +1 -1
- package/esm2022/lib/core/models/report-workflow.model.mjs +2 -0
- package/esm2022/lib/core/services/dynamic-form-builder.service.mjs +48 -2
- package/esm2022/lib/core/utilities/schema-migration.mjs +2 -1
- package/esm2022/lib/core/utils/report-values.util.mjs +3 -3
- package/esm2022/lib/core/utils/report-workflow.util.mjs +128 -0
- package/esm2022/lib/core/utils/selection-workflow.util.mjs +12 -11
- package/esm2022/lib/features/designer/components/component-palette/component-palette.component.mjs +17 -4
- package/esm2022/lib/features/designer/components/design-canvas/design-canvas.component.mjs +41 -25
- package/esm2022/lib/features/designer/components/property-editor/property-editor-general.component.mjs +2 -2
- package/esm2022/lib/features/designer/components/property-editor/property-editor.component.mjs +78 -3
- package/esm2022/lib/features/designer/components/property-editor/selection-workflow-editor.component.mjs +34 -24
- package/esm2022/lib/features/designer/components/property-editor/workflow-source-editor.component.mjs +55 -18
- package/esm2022/lib/features/designer/components/toolbar/designer-toolbar.component.mjs +3 -25
- package/esm2022/lib/features/designer/services/designer-state.service.mjs +36 -2
- package/esm2022/lib/features/persistence/services/schema-validator.service.mjs +18 -3
- package/esm2022/lib/features/runtime/dynamic-renderer.component.mjs +29 -39
- package/esm2022/lib/features/runtime/index.mjs +2 -1
- package/esm2022/lib/features/runtime/report-component-grid.component.mjs +90 -0
- package/esm2022/lib/features/runtime/report-execution.service.mjs +9 -8
- package/esm2022/lib/features/runtime/report-runtime.component.mjs +5 -3
- package/esm2022/lib/features/runtime/selection-workflow-panel.component.mjs +6 -6
- package/esm2022/lib/features/runtime/selection-workflow.service.mjs +79 -20
- package/esm2022/lib/primitives/register-builtins.mjs +27 -1
- package/fesm2022/bways-report.mjs +3164 -2656
- package/fesm2022/bways-report.mjs.map +1 -1
- package/lib/core/formula/formula-columns.d.ts +3 -2
- package/lib/core/models/index.d.ts +1 -0
- package/lib/core/models/report-component.model.d.ts +7 -0
- package/lib/core/models/report-definition.model.d.ts +3 -0
- package/lib/core/models/report-workflow.model.d.ts +16 -0
- package/lib/core/services/dynamic-form-builder.service.d.ts +4 -0
- package/lib/core/utils/report-values.util.d.ts +1 -1
- package/lib/core/utils/report-workflow.util.d.ts +8 -0
- package/lib/core/utils/selection-workflow.util.d.ts +5 -1
- package/lib/features/designer/components/component-palette/component-palette.component.d.ts +3 -1
- package/lib/features/designer/components/design-canvas/design-canvas.component.d.ts +5 -0
- package/lib/features/designer/components/property-editor/property-editor.component.d.ts +12 -0
- package/lib/features/designer/components/property-editor/selection-workflow-editor.component.d.ts +2 -0
- package/lib/features/designer/components/property-editor/workflow-source-editor.component.d.ts +8 -2
- package/lib/features/designer/services/designer-state.service.d.ts +2 -0
- package/lib/features/runtime/dynamic-renderer.component.d.ts +3 -0
- package/lib/features/runtime/index.d.ts +1 -0
- package/lib/features/runtime/report-component-grid.component.d.ts +20 -0
- package/lib/features/runtime/report-runtime.component.d.ts +3 -0
- package/lib/features/runtime/selection-workflow.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ReportDefinition } from '../models/report-definition.model';
|
|
2
|
+
import { ReportGridDefinition } from '../models/report-grid.model';
|
|
2
3
|
export interface FormulaColumnResult {
|
|
3
4
|
rows: unknown[];
|
|
4
5
|
/** First runtime error per formula (the cell itself is left null). */
|
|
5
6
|
rowErrors: Record<string, string>;
|
|
6
7
|
}
|
|
7
8
|
/** Design-time problems with a report's formulas and the grid columns that use them. Empty when fine. */
|
|
8
|
-
export declare function formulaDefinitionErrors(def: ReportDefinition): string[];
|
|
9
|
+
export declare function formulaDefinitionErrors(def: ReportDefinition, grid?: ReportGridDefinition | undefined): string[];
|
|
9
10
|
/**
|
|
10
11
|
* Adds the value of each formula column to every row, in one ordered pass over the rows.
|
|
11
12
|
* Cells hold stored values, so rendering, sorting and export never re-run a formula.
|
|
@@ -13,4 +14,4 @@ export declare function formulaDefinitionErrors(def: ReportDefinition): string[]
|
|
|
13
14
|
* Throws when the formula definitions themselves are invalid. A data problem in one row
|
|
14
15
|
* (for example a null where text is required) leaves that cell null and is reported in `rowErrors`.
|
|
15
16
|
*/
|
|
16
|
-
export declare function applyFormulaColumns(def: ReportDefinition, rows: unknown[], params?: Record<string, unknown
|
|
17
|
+
export declare function applyFormulaColumns(def: ReportDefinition, rows: unknown[], params?: Record<string, unknown>, grid?: ReportGridDefinition | undefined): FormulaColumnResult;
|
|
@@ -13,3 +13,4 @@ export type { ComponentEventDefinition, ComponentActionDefinition, } from './com
|
|
|
13
13
|
export type { ReportFormulaDefinition } from './report-formula.model';
|
|
14
14
|
export * from './report-menu.model';
|
|
15
15
|
export * from './selection-workflow.model';
|
|
16
|
+
export * from './report-workflow.model';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import { ComponentLayoutDefinition } from './report-layout.model';
|
|
10
10
|
import { ValidationDefinition } from './validation.model';
|
|
11
11
|
import { ComponentEventDefinition } from './component-event.model';
|
|
12
|
+
import { ReportGridDefinition } from './report-grid.model';
|
|
12
13
|
/**
|
|
13
14
|
* Binding configuration for connecting a component to a data source or parameter.
|
|
14
15
|
*/
|
|
@@ -96,10 +97,16 @@ export interface ReportComponentDefinition {
|
|
|
96
97
|
validation?: ValidationDefinition;
|
|
97
98
|
/** Data source for this component's options/data. */
|
|
98
99
|
dataSource?: ComponentDataSourceDefinition;
|
|
100
|
+
/** Independent result-grid configuration when `type === 'grid'`. */
|
|
101
|
+
grid?: ReportGridDefinition;
|
|
99
102
|
/** Event → action bindings. */
|
|
100
103
|
events?: ComponentEventDefinition[];
|
|
101
104
|
/** Conditional visibility rules. */
|
|
102
105
|
visibility?: VisibilityDefinition;
|
|
106
|
+
/** Conditional required validation, independent of the base Required setting. Schema 3. */
|
|
107
|
+
requiredWhen?: VisibilityDefinition;
|
|
108
|
+
/** Hide-dependent inputs are disabled and cleared when their visibility condition is false. Schema 3. */
|
|
109
|
+
clearWhenHidden?: boolean;
|
|
103
110
|
/** Whether this component is enabled. Defaults to `true`. */
|
|
104
111
|
enabled?: boolean;
|
|
105
112
|
/** CSS class names to add to the component wrapper. */
|
|
@@ -15,6 +15,7 @@ import { ReportDataSourceDefinition } from './report-datasource.model';
|
|
|
15
15
|
import { ReportFormulaDefinition } from './report-formula.model';
|
|
16
16
|
import { ReportGridDefinition } from './report-grid.model';
|
|
17
17
|
import { ReportLayoutDefinition } from './report-layout.model';
|
|
18
|
+
import { ReportWorkflowDefinition } from './report-workflow.model';
|
|
18
19
|
import { SelectionWorkflowDefinition } from './selection-workflow.model';
|
|
19
20
|
/**
|
|
20
21
|
* Permission settings for a report.
|
|
@@ -99,6 +100,8 @@ export interface ReportDefinition {
|
|
|
99
100
|
dataSources: ReportDataSourceDefinition[];
|
|
100
101
|
/** Result grid definition. */
|
|
101
102
|
grid?: ReportGridDefinition;
|
|
103
|
+
/** Unified page execution, report variants and output; requires schemaVersion 3. */
|
|
104
|
+
pageWorkflow?: ReportWorkflowDefinition;
|
|
102
105
|
/** Named formulas. Grid columns reference them through `GridColumnDefinition.formula`. */
|
|
103
106
|
formulas?: ReportFormulaDefinition[];
|
|
104
107
|
/** Optional radio-driven record picker; requires schemaVersion 2. */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReportGridDefinition } from './report-grid.model';
|
|
2
|
+
/** Optional schema-3 page orchestration. Queries remain in report.dataSources. */
|
|
3
|
+
export interface ReportWorkflowDefinition {
|
|
4
|
+
version: 1;
|
|
5
|
+
actionButtonId: string;
|
|
6
|
+
output: 'grid' | 'print';
|
|
7
|
+
reportTypeKey?: string;
|
|
8
|
+
variants?: ReportWorkflowVariant[];
|
|
9
|
+
}
|
|
10
|
+
export interface ReportWorkflowVariant {
|
|
11
|
+
value: string | number | boolean;
|
|
12
|
+
label?: string;
|
|
13
|
+
grid: ReportGridDefinition;
|
|
14
|
+
/** Omitted uses the report's formulas; an empty array selects none. */
|
|
15
|
+
formulaNames?: string[];
|
|
16
|
+
}
|
|
@@ -8,6 +8,10 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* ReportComponentDefinition[] (metadata) -> DynamicFormBuilder -> FormGroup (runtime model)
|
|
9
9
|
*/
|
|
10
10
|
export declare class DynamicFormBuilder {
|
|
11
|
+
private readonly ruleComponents;
|
|
12
|
+
private readonly ruleForms;
|
|
13
|
+
private bindRules;
|
|
14
|
+
applyFieldRules(form: FormGroup): void;
|
|
11
15
|
/**
|
|
12
16
|
* Constructs an Angular FormGroup from a list of component definitions.
|
|
13
17
|
*
|
|
@@ -4,4 +4,4 @@ export declare function gridFormulaValues(def: ReportDefinition, values: Record<
|
|
|
4
4
|
/** One execution snapshot. Argument-backed values reference the existing binding, never a copy. */
|
|
5
5
|
export declare function resolveReportValues(def: ReportDefinition, form: Record<string, unknown>, session: Record<string, unknown>, sourceId?: string): Record<string, unknown>;
|
|
6
6
|
/** Validate only formulas used by grid columns, including their transitive dependencies. */
|
|
7
|
-
export declare function validateFormulaInputs(def: ReportDefinition, values: Record<string, unknown
|
|
7
|
+
export declare function validateFormulaInputs(def: ReportDefinition, values: Record<string, unknown>, grid?: ReportDefinition['grid']): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReportDefinition } from '../models/report-definition.model';
|
|
2
|
+
import { VisibilityDefinition } from '../models/report-component.model';
|
|
3
|
+
export declare function hasReportWorkflow(definition: ReportDefinition): boolean;
|
|
4
|
+
export declare function matchesFieldCondition(condition: VisibilityDefinition | undefined, values: Record<string, unknown>): boolean;
|
|
5
|
+
/** Select a variant explicitly; never execute the first query as a fallback. */
|
|
6
|
+
export declare function resolveWorkflowReport(definition: ReportDefinition, values: Record<string, unknown>): ReportDefinition;
|
|
7
|
+
/** Validation is shared by JSON loading, the designer and execution. */
|
|
8
|
+
export declare function reportWorkflowErrors(definition: ReportDefinition): string[];
|
|
@@ -8,5 +8,9 @@ export declare function selectionTriggerKey(definition: ReportDefinition): strin
|
|
|
8
8
|
export declare function selectionCase(definition: ReportDefinition, value: unknown): SelectionWorkflowCase | undefined;
|
|
9
9
|
/** The managed picker control participates in normal form extraction but has no visual component. */
|
|
10
10
|
export declare function selectionFormComponents(definition: ReportDefinition): ReportComponentDefinition[];
|
|
11
|
+
export interface SelectionWorkflowValidationOptions {
|
|
12
|
+
/** Set false while editing lookup configuration; the final report grid is configured separately. */
|
|
13
|
+
requireFinalGrid?: boolean;
|
|
14
|
+
}
|
|
11
15
|
/** Validate all pickers together before creating any requests. */
|
|
12
|
-
export declare function selectionWorkflowErrors(definition: ReportDefinition): string[];
|
|
16
|
+
export declare function selectionWorkflowErrors(definition: ReportDefinition, options?: SelectionWorkflowValidationOptions): string[];
|
|
@@ -9,10 +9,12 @@ export declare class ComponentPaletteComponent {
|
|
|
9
9
|
/** Selected category filter tab: 'all' or specific category name */
|
|
10
10
|
readonly selectedCategory: import("@angular/core").WritableSignal<string>;
|
|
11
11
|
/** Layout view mode: 'grid' (2-column side-by-side grid) or 'list' (compact row list). Defaults to 'grid'. */
|
|
12
|
-
readonly layoutMode: import("@angular/core").WritableSignal<"
|
|
12
|
+
readonly layoutMode: import("@angular/core").WritableSignal<"grid" | "list">;
|
|
13
13
|
/** Set of expanded category IDs */
|
|
14
14
|
readonly expandedCategories: import("@angular/core").WritableSignal<Set<string>>;
|
|
15
15
|
readonly totalComponentCount: import("@angular/core").Signal<number>;
|
|
16
|
+
private readonly categoryOrder;
|
|
17
|
+
private categoryRank;
|
|
16
18
|
readonly categoryMeta: Record<string, {
|
|
17
19
|
label: string;
|
|
18
20
|
icon: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasReportWorkflow } from '../../../../core/utils/report-workflow.util';
|
|
1
2
|
import { OnDestroy } from '@angular/core';
|
|
2
3
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
4
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
@@ -7,9 +8,12 @@ import { SelectionWorkflowService } from '../../../runtime/selection-workflow.se
|
|
|
7
8
|
import { getComponentIconName } from '../../utilities/canvas-layout.util';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class DesignCanvasComponent implements OnDestroy {
|
|
11
|
+
readonly hasReportWorkflow: typeof hasReportWorkflow;
|
|
12
|
+
isComponentVisible(comp: ReportComponentDefinition): boolean;
|
|
10
13
|
readonly workflow: SelectionWorkflowService;
|
|
11
14
|
readonly displayGrid: import("@angular/core").Signal<ReportGridDefinition | undefined>;
|
|
12
15
|
readonly displayRows: import("@angular/core").Signal<unknown[]>;
|
|
16
|
+
readonly hasComponentGrid: import("@angular/core").Signal<boolean>;
|
|
13
17
|
private readonly lookupPanel;
|
|
14
18
|
private readonly requests;
|
|
15
19
|
private readonly formContext;
|
|
@@ -72,6 +76,7 @@ export declare class DesignCanvasComponent implements OnDestroy {
|
|
|
72
76
|
onCanvasGridStateChange(state: any): void;
|
|
73
77
|
onCanvasColumnDefsChange(defs: any[]): void;
|
|
74
78
|
removeGrid(event?: MouseEvent): void;
|
|
79
|
+
private updateVariantGrid;
|
|
75
80
|
private updateWorkflowGrid;
|
|
76
81
|
applyBlueprint(blueprintId: string): void;
|
|
77
82
|
addStarterComponent(type: string): void;
|
|
@@ -42,6 +42,18 @@ export declare class PropertyEditorComponent {
|
|
|
42
42
|
readonly maxColumns: import("@angular/core").Signal<number>;
|
|
43
43
|
readonly allComponents: import("@angular/core").Signal<ReportComponentDefinition[]>;
|
|
44
44
|
readonly gridDataSource: import("@angular/core").Signal<ReportDataSourceDefinition | undefined>;
|
|
45
|
+
componentGridDataSource(comp: ReportComponentDefinition): ReportDataSourceDefinition | undefined;
|
|
46
|
+
private updateComponentGrid;
|
|
47
|
+
onComponentGridEntityChanged(comp: ReportComponentDefinition, event: {
|
|
48
|
+
name: string;
|
|
49
|
+
type: 'stored_procedure' | 'table' | 'api';
|
|
50
|
+
}): void;
|
|
51
|
+
onComponentGridSourceUpdated(comp: ReportComponentDefinition, value: ReportDataSourceDefinition): void;
|
|
52
|
+
onComponentGridParametersChanged(comp: ReportComponentDefinition, mappings: Record<string, unknown>): void;
|
|
53
|
+
onComponentGridColumnChanged(comp: ReportComponentDefinition, index: number, field: string, value: unknown): void;
|
|
54
|
+
onComponentGridOptionChanged(comp: ReportComponentDefinition, field: string, value: unknown): void;
|
|
55
|
+
onComponentGridRowActionChanged(comp: ReportComponentDefinition, action: GridRowClickAction | undefined): void;
|
|
56
|
+
autoDetectComponentGridColumns(comp: ReportComponentDefinition): void;
|
|
45
57
|
constructor();
|
|
46
58
|
readonly propertySchema: import("@angular/core").Signal<PropertyDefinition[]>;
|
|
47
59
|
setTab(tab: DesignerActiveTab): void;
|
package/lib/features/designer/components/property-editor/selection-workflow-editor.component.d.ts
CHANGED
|
@@ -95,6 +95,8 @@ export declare class SelectionWorkflowEditorComponent {
|
|
|
95
95
|
loadSample(): void;
|
|
96
96
|
selectSample(rows: unknown[]): void;
|
|
97
97
|
caseLabel(item: SelectionWorkflowCase): string;
|
|
98
|
+
private reportPatch;
|
|
99
|
+
private persistWorkingDraft;
|
|
98
100
|
save(): void;
|
|
99
101
|
remove(): void;
|
|
100
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionWorkflowEditorComponent, never>;
|
package/lib/features/designer/components/property-editor/workflow-source-editor.component.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ReportDataSourceDefinition } from '../../../../core/models/report-datas
|
|
|
2
2
|
import { ReportGridDefinition, GridColumnDefinition } from '../../../../core/models/report-grid.model';
|
|
3
3
|
import { ReportComponentDefinition } from '../../../../core/models/report-component.model';
|
|
4
4
|
import { DatabaseEntityMetadata, ProcedureParameterMetadata } from '../../../../data-access/contracts/schema-discovery.contract';
|
|
5
|
+
import { SelectionBindingSource } from './parameter-binding-editor.component';
|
|
5
6
|
import { SearchableSelectOption } from '../../../../primitives/components';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class WorkflowSourceEditorComponent {
|
|
@@ -9,6 +10,7 @@ export declare class WorkflowSourceEditorComponent {
|
|
|
9
10
|
readonly grid: import("@angular/core").InputSignal<ReportGridDefinition>;
|
|
10
11
|
readonly title: import("@angular/core").InputSignal<string>;
|
|
11
12
|
readonly components: import("@angular/core").InputSignal<ReportComponentDefinition[]>;
|
|
13
|
+
readonly selectionSources: import("@angular/core").InputSignal<SelectionBindingSource[]>;
|
|
12
14
|
readonly selectionKey: import("@angular/core").InputSignal<string>;
|
|
13
15
|
readonly selectedColumns: import("@angular/core").InputSignal<GridColumnDefinition[]>;
|
|
14
16
|
/** Author-selected lookup sample, including transient selected-record metadata. */
|
|
@@ -17,6 +19,8 @@ export declare class WorkflowSourceEditorComponent {
|
|
|
17
19
|
readonly gridChange: import("@angular/core").OutputEmitterRef<ReportGridDefinition>;
|
|
18
20
|
readonly uid: string;
|
|
19
21
|
readonly entities: import("@angular/core").WritableSignal<DatabaseEntityMetadata[]>;
|
|
22
|
+
readonly entitiesLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
23
|
+
readonly entitiesLoading: import("@angular/core").WritableSignal<boolean>;
|
|
20
24
|
readonly parameters: import("@angular/core").WritableSignal<ProcedureParameterMetadata[]>;
|
|
21
25
|
readonly parametersLoaded: import("@angular/core").WritableSignal<boolean>;
|
|
22
26
|
readonly detecting: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -25,10 +29,12 @@ export declare class WorkflowSourceEditorComponent {
|
|
|
25
29
|
private readonly discovery;
|
|
26
30
|
private readonly formContext;
|
|
27
31
|
private readonly requests;
|
|
32
|
+
private entitiesContext;
|
|
28
33
|
readonly entityKey: import("@angular/core").Signal<string>;
|
|
29
34
|
readonly procedureSelectOptions: import("@angular/core").Signal<SearchableSelectOption<any>[]>;
|
|
30
35
|
constructor();
|
|
31
|
-
|
|
36
|
+
ensureEntitiesLoaded(): void;
|
|
37
|
+
loadEntities(force?: boolean): void;
|
|
32
38
|
choose(key: string): void;
|
|
33
39
|
mapping(name: string): string | number | boolean;
|
|
34
40
|
setMapping(name: string, value: string | number | boolean): void;
|
|
@@ -36,5 +42,5 @@ export declare class WorkflowSourceEditorComponent {
|
|
|
36
42
|
detectColumns(): void;
|
|
37
43
|
columnChange(index: number, patch: Partial<GridColumnDefinition>): void;
|
|
38
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowSourceEditorComponent, never>;
|
|
39
|
-
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; }; "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>;
|
|
45
|
+
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>;
|
|
40
46
|
}
|
|
@@ -84,6 +84,8 @@ export declare class DesignerStateService {
|
|
|
84
84
|
updateGridSettings(grid: ReportGridDefinition | undefined, options?: {
|
|
85
85
|
skipHistory?: boolean;
|
|
86
86
|
}): void;
|
|
87
|
+
/** Updates one canvas grid and optionally upserts the data source it owns. */
|
|
88
|
+
updateComponentGrid(id: string, grid: ReportGridDefinition, dataSource?: ReportDataSourceDefinition): void;
|
|
87
89
|
/**
|
|
88
90
|
* Sets or updates the primary data source for the report's result grid.
|
|
89
91
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasReportWorkflow } from '../../core/utils/report-workflow.util';
|
|
1
2
|
import { Type } from '@angular/core';
|
|
2
3
|
import { FormGroup } from '@angular/forms';
|
|
3
4
|
import { ReportDefinition } from '../../core/models/report-definition.model';
|
|
@@ -7,11 +8,13 @@ import { GridColumnDefinition, GridRowClickAction } from '../../core/models/repo
|
|
|
7
8
|
import { SelectionWorkflowService, SelectionWorkflowResult } from './selection-workflow.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class DynamicRendererComponent {
|
|
11
|
+
readonly hasReportWorkflow: typeof hasReportWorkflow;
|
|
10
12
|
readonly workflow: SelectionWorkflowService;
|
|
11
13
|
readonly workflowExecuted: import("@angular/core").OutputEmitterRef<SelectionWorkflowResult>;
|
|
12
14
|
readonly workflowInvalidated: import("@angular/core").OutputEmitterRef<void>;
|
|
13
15
|
readonly displayData: import("@angular/core").Signal<unknown[] | null>;
|
|
14
16
|
readonly displayGrid: import("@angular/core").Signal<import("../../core/models/report-grid.model").ReportGridDefinition | undefined>;
|
|
17
|
+
readonly hasComponentGrid: import("@angular/core").Signal<boolean>;
|
|
15
18
|
constructor();
|
|
16
19
|
private readonly registry;
|
|
17
20
|
private readonly formBuilder;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ReportRuntimeComponent } from './report-runtime.component';
|
|
2
2
|
export { DynamicRendererComponent } from './dynamic-renderer.component';
|
|
3
3
|
export { ReportGridBridgeComponent } from './report-grid-bridge.component';
|
|
4
|
+
export { ReportComponentGridComponent } from './report-component-grid.component';
|
|
4
5
|
export { RptReportComponent } from './rpt-report.component';
|
|
5
6
|
export type { ReportViewPreset } from './rpt-report.component';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReportDefinition } from '../../core/models/report-definition.model';
|
|
2
|
+
import { ReportComponentDefinition } from '../../core/models/report-component.model';
|
|
3
|
+
import { ReportGridDefinition } from '../../core/models/report-grid.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/** A canvas/runtime grid whose query and columns belong to one Grid component. */
|
|
6
|
+
export declare class ReportComponentGridComponent {
|
|
7
|
+
private readonly execution;
|
|
8
|
+
readonly definition: import("@angular/core").InputSignal<ReportDefinition>;
|
|
9
|
+
readonly config: import("@angular/core").InputSignal<ReportComponentDefinition>;
|
|
10
|
+
readonly parameters: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
11
|
+
readonly grid: import("@angular/core").Signal<ReportGridDefinition | undefined>;
|
|
12
|
+
readonly rows: import("@angular/core").WritableSignal<unknown[] | null>;
|
|
13
|
+
readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
readonly error: import("@angular/core").WritableSignal<string | null>;
|
|
15
|
+
private signature;
|
|
16
|
+
private revision;
|
|
17
|
+
constructor();
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportComponentGridComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReportComponentGridComponent, "rpt-report-component-grid", never, { "definition": { "alias": "definition"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -2,9 +2,12 @@ import { ReportDefinition } from '../../core/models/report-definition.model';
|
|
|
2
2
|
import { ReportComponentDefinition } from '../../core/models/report-component.model';
|
|
3
3
|
import { ComponentActionDefinition } from '../../core/models/component-event.model';
|
|
4
4
|
import { GridRowClickAction } from '../../core/models/report-grid.model';
|
|
5
|
+
import { DynamicRendererComponent } from './dynamic-renderer.component';
|
|
5
6
|
import { SelectionWorkflowResult } from './selection-workflow.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ReportRuntimeComponent {
|
|
9
|
+
/** @internal Designer query previews use the active form rather than stale canvas filters. */
|
|
10
|
+
readonly renderer: import("@angular/core").Signal<DynamicRendererComponent | undefined>;
|
|
8
11
|
private readonly requests;
|
|
9
12
|
private readonly persistenceAdapter;
|
|
10
13
|
private readonly dataSourceAdapter;
|
|
@@ -22,6 +22,8 @@ export declare class SelectionWorkflowService {
|
|
|
22
22
|
lookupLabel(): string;
|
|
23
23
|
private syncAdditional;
|
|
24
24
|
private readonly execution;
|
|
25
|
+
private readonly print;
|
|
26
|
+
private readonly standaloneRun;
|
|
25
27
|
private readonly session;
|
|
26
28
|
private readonly requests;
|
|
27
29
|
private form?;
|
|
@@ -37,6 +39,7 @@ export declare class SelectionWorkflowService {
|
|
|
37
39
|
private authorizedContext;
|
|
38
40
|
private readonly branch;
|
|
39
41
|
readonly activeCase: import("@angular/core").Signal<SelectionWorkflowCase | null>;
|
|
42
|
+
readonly hasSelection: import("@angular/core").WritableSignal<boolean>;
|
|
40
43
|
readonly lookupRows: import("@angular/core").WritableSignal<unknown[]>;
|
|
41
44
|
readonly resultRows: import("@angular/core").WritableSignal<unknown[] | null>;
|
|
42
45
|
readonly lookupState: import("@angular/core").WritableSignal<State>;
|