bways-report 0.2.14 → 0.2.15
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/models/selection-workflow.model.mjs +1 -1
- package/esm2022/lib/core/services/designer-form-context.service.mjs +11 -2
- package/esm2022/lib/core/services/report-data-discovery.service.mjs +5 -3
- package/esm2022/lib/core/utils/report-form-values.util.mjs +23 -3
- package/esm2022/lib/core/utils/selection-workflow.util.mjs +20 -4
- package/esm2022/lib/features/designer/components/property-editor/formula-editor.component.mjs +3 -3
- package/esm2022/lib/features/designer/components/property-editor/parameter-binding-editor.component.mjs +344 -16
- package/esm2022/lib/features/designer/components/property-editor/property-editor-action.component.mjs +3 -3
- package/esm2022/lib/features/designer/components/property-editor/property-editor-datasource.component.mjs +3 -3
- package/esm2022/lib/features/designer/components/property-editor/property-editor-grid.component.mjs +4 -3
- package/esm2022/lib/features/designer/components/property-editor/property-editor.component.mjs +8 -7
- package/esm2022/lib/features/designer/components/property-editor/selection-workflow-editor.component.mjs +279 -96
- package/esm2022/lib/features/designer/components/property-editor/workflow-source-editor.component.mjs +2 -2
- package/esm2022/lib/features/runtime/selection-workflow.service.mjs +58 -7
- package/fesm2022/bways-report.mjs +748 -137
- package/fesm2022/bways-report.mjs.map +1 -1
- package/lib/core/models/selection-workflow.model.d.ts +5 -0
- package/lib/core/services/designer-form-context.service.d.ts +1 -0
- package/lib/core/utils/report-form-values.util.d.ts +1 -0
- package/lib/features/designer/components/property-editor/parameter-binding-editor.component.d.ts +21 -1
- package/lib/features/designer/components/property-editor/property-editor-grid.component.d.ts +3 -1
- package/lib/features/designer/components/property-editor/property-editor.component.d.ts +1 -0
- package/lib/features/designer/components/property-editor/selection-workflow-editor.component.d.ts +5 -1
- package/package.json +1 -1
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ReportGridDefinition } from './report-grid.model';
|
|
2
|
+
export type SelectionCaseType = 'all_sp_rows' | 'custom_parameter' | 'sp_selection_grid';
|
|
2
3
|
/** A record picker. Radio workflows use one per option; dropdown workflows use one shared picker. */
|
|
3
4
|
export interface SelectionWorkflowCase {
|
|
4
5
|
value: string | number;
|
|
5
6
|
/** Normal-report branch without interactive row selection; selected-row bindings resolve all lookup rows on Run. */
|
|
6
7
|
direct?: boolean;
|
|
8
|
+
/** High-level mode of this case in a radio selection workflow. */
|
|
9
|
+
caseType?: SelectionCaseType;
|
|
10
|
+
/** Custom parameter literal value passed to final SP when caseType is 'custom_parameter'. */
|
|
11
|
+
customParameter?: string | number | boolean;
|
|
7
12
|
/** Multiple selections send CSV values; omitted preserves legacy single-row behavior. */
|
|
8
13
|
selectionMode?: 'single' | 'multiple';
|
|
9
14
|
/** Join selected IDs and column values with this literal separator. Default comma; empty means concatenate. */
|
|
@@ -17,6 +17,7 @@ export declare class DesignerFormContextService {
|
|
|
17
17
|
key: string | number;
|
|
18
18
|
label: string;
|
|
19
19
|
}[]): void;
|
|
20
|
+
setSelectionLiteral(key: string, value: unknown): void;
|
|
20
21
|
setControlValue(key: string, value: unknown): void;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerFormContextService, never>;
|
|
22
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<DesignerFormContextService>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
+
export declare function createSelectionLiteralRecord(value: unknown): Record<string, unknown>;
|
|
2
3
|
export declare function rememberSelectedOption(control: AbstractControl, value: unknown, record?: Record<string, unknown>, records?: Record<string, unknown>[], separator?: string): void;
|
|
3
4
|
/** Keep form values primitive. Selection metadata never becomes a wire argument. */
|
|
4
5
|
export declare function extractReportFormValues(form: FormGroup): Record<string, unknown>;
|
package/lib/features/designer/components/property-editor/parameter-binding-editor.component.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ProcedureParameterMetadata } from '../../../../data-access/contracts/schema-discovery.contract';
|
|
2
2
|
import { ReportComponentDefinition } from '../../../../core/models/report-component.model';
|
|
3
|
+
import { SelectionWorkflowDefinition, SelectionWorkflowCase, SelectionCaseType } from '../../../../core/models/selection-workflow.model';
|
|
3
4
|
import { ParameterDateFormat } from '../../../../core/utils/report-parameter.util';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/** Transient designer metadata connecting a visible radio field with its managed row selection. */
|
|
@@ -26,6 +27,25 @@ export declare class ParameterBindingEditorComponent {
|
|
|
26
27
|
label?: string;
|
|
27
28
|
}[]>;
|
|
28
29
|
readonly selectionSources: import("@angular/core").InputSignal<SelectionBindingSource[]>;
|
|
30
|
+
readonly selectionWorkflows: import("@angular/core").InputSignal<SelectionWorkflowDefinition[]>;
|
|
31
|
+
readonly internalRadioOption: import("@angular/core").WritableSignal<string | number | null>;
|
|
32
|
+
readonly selectedRadioField: import("@angular/core").Signal<ReportComponentDefinition | undefined>;
|
|
33
|
+
readonly radioWorkflow: import("@angular/core").Signal<SelectionWorkflowDefinition | null>;
|
|
34
|
+
readonly radioOptions: import("@angular/core").Signal<{
|
|
35
|
+
label: string;
|
|
36
|
+
value: string | number;
|
|
37
|
+
}[]>;
|
|
38
|
+
readonly selectedRadioOptionValue: import("@angular/core").Signal<string | number | null>;
|
|
39
|
+
readonly selectedRadioOptionLabel: import("@angular/core").Signal<string>;
|
|
40
|
+
readonly selectedRadioCase: import("@angular/core").Signal<SelectionWorkflowCase | null>;
|
|
41
|
+
readonly selectedRadioCaseType: import("@angular/core").Signal<SelectionCaseType | null>;
|
|
42
|
+
readonly radioCaseColumns: import("@angular/core").Signal<{
|
|
43
|
+
field: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
}[]>;
|
|
46
|
+
readonly selectedRadioColumn: import("@angular/core").Signal<string>;
|
|
47
|
+
onRadioOptionSelected(value: string | number): void;
|
|
48
|
+
onRadioColumnSelected(column: string): void;
|
|
29
49
|
readonly effectiveSelectionSources: import("@angular/core").Signal<SelectionBindingSource[]>;
|
|
30
50
|
readonly selectedRowSource: import("@angular/core").Signal<SelectionBindingSource | undefined>;
|
|
31
51
|
readonly standaloneSelectionSources: import("@angular/core").Signal<SelectionBindingSource[]>;
|
|
@@ -88,5 +108,5 @@ export declare class ParameterBindingEditorComponent {
|
|
|
88
108
|
onFixedValueChanged(val: unknown): void;
|
|
89
109
|
onContextSelected(ctxKey: string): void;
|
|
90
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParameterBindingEditorComponent, never>;
|
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ParameterBindingEditorComponent, "rpt-parameter-binding-editor", never, { "param": { "alias": "param"; "required": true; "isSignal": true; }; "currentValue": { "alias": "currentValue"; "required": false; "isSignal": true; }; "allComponents": { "alias": "allComponents"; "required": false; "isSignal": true; }; "selectionKey": { "alias": "selectionKey"; "required": false; "isSignal": true; }; "selectionColumns": { "alias": "selectionColumns"; "required": false; "isSignal": true; }; "selectionSources": { "alias": "selectionSources"; "required": false; "isSignal": true; }; "currentComponentId": { "alias": "currentComponentId"; "required": false; "isSignal": true; }; "isAdvancedMode": { "alias": "isAdvancedMode"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "linkedFieldChange": "linkedFieldChange"; }, never, never, true, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParameterBindingEditorComponent, "rpt-parameter-binding-editor", never, { "param": { "alias": "param"; "required": true; "isSignal": true; }; "currentValue": { "alias": "currentValue"; "required": false; "isSignal": true; }; "allComponents": { "alias": "allComponents"; "required": false; "isSignal": true; }; "selectionKey": { "alias": "selectionKey"; "required": false; "isSignal": true; }; "selectionColumns": { "alias": "selectionColumns"; "required": false; "isSignal": true; }; "selectionSources": { "alias": "selectionSources"; "required": false; "isSignal": true; }; "selectionWorkflows": { "alias": "selectionWorkflows"; "required": false; "isSignal": true; }; "currentComponentId": { "alias": "currentComponentId"; "required": false; "isSignal": true; }; "isAdvancedMode": { "alias": "isAdvancedMode"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "linkedFieldChange": "linkedFieldChange"; }, never, never, true, never>;
|
|
92
112
|
}
|
package/lib/features/designer/components/property-editor/property-editor-grid.component.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReportExecutionQuery } from '../../../../core/services/report-execution-query.service';
|
|
2
2
|
import { GridColumnDefinition, GridRowClickAction, ReportGridDefinition } from '../../../../core/models/report-grid.model';
|
|
3
|
+
import { SelectionWorkflowDefinition } from '../../../../core/models/selection-workflow.model';
|
|
3
4
|
import { ReportDataSourceDefinition } from '../../../../core/models/report-datasource.model';
|
|
4
5
|
import { ReportComponentDefinition } from '../../../../core/models/report-component.model';
|
|
5
6
|
import { DatabaseEntityMetadata, ProcedureParameterMetadata } from '../../../../data-access/contracts/schema-discovery.contract';
|
|
@@ -20,6 +21,7 @@ export declare class PropertyEditorGridComponent {
|
|
|
20
21
|
/** Names of the report's formulas, offered as a source for each column. */
|
|
21
22
|
readonly formulaNames: import("@angular/core").InputSignal<string[]>;
|
|
22
23
|
readonly selectionSources: import("@angular/core").InputSignal<SelectionBindingSource[]>;
|
|
24
|
+
readonly selectionWorkflows: import("@angular/core").InputSignal<SelectionWorkflowDefinition[]>;
|
|
23
25
|
readonly selectionKey: import("@angular/core").InputSignal<string>;
|
|
24
26
|
readonly selectionColumns: import("@angular/core").InputSignal<GridColumnDefinition[]>;
|
|
25
27
|
readonly dataSource: import("@angular/core").InputSignal<ReportDataSourceDefinition | undefined>;
|
|
@@ -102,5 +104,5 @@ export declare class PropertyEditorGridComponent {
|
|
|
102
104
|
updateMappingValue(index: number, newValue: string): void;
|
|
103
105
|
removeMapping(index: number): void;
|
|
104
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyEditorGridComponent, never>;
|
|
105
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PropertyEditorGridComponent, "rpt-property-editor-grid", never, { "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "formulaNames": { "alias": "formulaNames"; "required": false; "isSignal": true; }; "selectionSources": { "alias": "selectionSources"; "required": false; "isSignal": true; }; "selectionKey": { "alias": "selectionKey"; "required": false; "isSignal": true; }; "selectionColumns": { "alias": "selectionColumns"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "availableEntities": { "alias": "availableEntities"; "required": false; "isSignal": true; }; "procedureParameters": { "alias": "procedureParameters"; "required": false; "isSignal": true; }; "allComponents": { "alias": "allComponents"; "required": false; "isSignal": true; }; "isRefreshingMetadata": { "alias": "isRefreshingMetadata"; "required": false; "isSignal": true; }; "metadataRefreshError": { "alias": "metadataRefreshError"; "required": false; "isSignal": true; }; "isDetecting": { "alias": "isDetecting"; "required": false; "isSignal": true; }; "statusMessage": { "alias": "statusMessage"; "required": false; "isSignal": true; }; "statusKind": { "alias": "statusKind"; "required": false; "isSignal": true; }; }, { "refreshMetadata": "refreshMetadata"; "addGrid": "addGrid"; "removeGrid": "removeGrid"; "addColumn": "addColumn"; "autoDetectColumns": "autoDetectColumns"; "removeColumn": "removeColumn"; "updateColumn": "updateColumn"; "updateOption": "updateOption"; "updateRowClickAction": "updateRowClickAction"; "setDataSource": "setDataSource"; "updateDataSourceParameters": "updateDataSourceParameters"; "entityChanged": "entityChanged"; }, never, never, true, never>;
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PropertyEditorGridComponent, "rpt-property-editor-grid", never, { "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "formulaNames": { "alias": "formulaNames"; "required": false; "isSignal": true; }; "selectionSources": { "alias": "selectionSources"; "required": false; "isSignal": true; }; "selectionWorkflows": { "alias": "selectionWorkflows"; "required": false; "isSignal": true; }; "selectionKey": { "alias": "selectionKey"; "required": false; "isSignal": true; }; "selectionColumns": { "alias": "selectionColumns"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "availableEntities": { "alias": "availableEntities"; "required": false; "isSignal": true; }; "procedureParameters": { "alias": "procedureParameters"; "required": false; "isSignal": true; }; "allComponents": { "alias": "allComponents"; "required": false; "isSignal": true; }; "isRefreshingMetadata": { "alias": "isRefreshingMetadata"; "required": false; "isSignal": true; }; "metadataRefreshError": { "alias": "metadataRefreshError"; "required": false; "isSignal": true; }; "isDetecting": { "alias": "isDetecting"; "required": false; "isSignal": true; }; "statusMessage": { "alias": "statusMessage"; "required": false; "isSignal": true; }; "statusKind": { "alias": "statusKind"; "required": false; "isSignal": true; }; }, { "refreshMetadata": "refreshMetadata"; "addGrid": "addGrid"; "removeGrid": "removeGrid"; "addColumn": "addColumn"; "autoDetectColumns": "autoDetectColumns"; "removeColumn": "removeColumn"; "updateColumn": "updateColumn"; "updateOption": "updateOption"; "updateRowClickAction": "updateRowClickAction"; "setDataSource": "setDataSource"; "updateDataSourceParameters": "updateDataSourceParameters"; "entityChanged": "entityChanged"; }, never, never, true, never>;
|
|
106
108
|
}
|
|
@@ -70,6 +70,7 @@ export declare class PropertyEditorComponent {
|
|
|
70
70
|
updateReport(key: string, value: unknown): void;
|
|
71
71
|
updateSelectionWorkflow(settings: Partial<ReportDefinition>): void;
|
|
72
72
|
updateFormulas(settings: Partial<ReportDefinition>): void;
|
|
73
|
+
readonly selectionWorkflows: import("@angular/core").Signal<import("bways-report").SelectionWorkflowDefinition[]>;
|
|
73
74
|
readonly selectionSources: import("@angular/core").Signal<{
|
|
74
75
|
key: string;
|
|
75
76
|
triggerKey: string | undefined;
|
package/lib/features/designer/components/property-editor/selection-workflow-editor.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReportDefinition } from '../../../../core/models/report-definition.model';
|
|
2
2
|
import { ReportDataSourceDefinition } from '../../../../core/models/report-datasource.model';
|
|
3
3
|
import { ReportGridDefinition } from '../../../../core/models/report-grid.model';
|
|
4
|
-
import { SelectionWorkflowDefinition, SelectionWorkflowCase } from '../../../../core/models/selection-workflow.model';
|
|
4
|
+
import { SelectionWorkflowDefinition, SelectionWorkflowCase, SelectionCaseType } from '../../../../core/models/selection-workflow.model';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SelectionWorkflowEditorComponent {
|
|
7
7
|
readonly definition: import("@angular/core").InputSignal<ReportDefinition>;
|
|
@@ -39,6 +39,10 @@ export declare class SelectionWorkflowEditorComponent {
|
|
|
39
39
|
chooseLookupMode(mode: 'radio' | 'dropdown' | 'button'): void;
|
|
40
40
|
chooseLookupButton(id: string): void;
|
|
41
41
|
readonly currentCase: import("@angular/core").Signal<SelectionWorkflowCase>;
|
|
42
|
+
readonly currentCaseType: import("@angular/core").Signal<SelectionCaseType>;
|
|
43
|
+
onCaseTypeChange(type: SelectionCaseType): void;
|
|
44
|
+
readonly configuredLookupCase: import("@angular/core").Signal<SelectionWorkflowCase | undefined>;
|
|
45
|
+
readonly configuredLookupSpName: import("@angular/core").Signal<string>;
|
|
42
46
|
readonly lookupSource: import("@angular/core").Signal<ReportDataSourceDefinition>;
|
|
43
47
|
readonly resultGrid: import("@angular/core").Signal<ReportGridDefinition>;
|
|
44
48
|
readonly resultSource: import("@angular/core").Signal<ReportDataSourceDefinition>;
|