bways-report 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +26 -0
- package/README.md +477 -0
- package/esm2022/bways-report.mjs +5 -0
- package/esm2022/lib/core/errors/index.mjs +2 -0
- package/esm2022/lib/core/errors/reporting-errors.mjs +65 -0
- package/esm2022/lib/core/index.mjs +8 -0
- package/esm2022/lib/core/models/component-event.model.mjs +8 -0
- package/esm2022/lib/core/models/index.mjs +5 -0
- package/esm2022/lib/core/models/report-component.model.mjs +10 -0
- package/esm2022/lib/core/models/report-datasource.model.mjs +9 -0
- package/esm2022/lib/core/models/report-definition.model.mjs +13 -0
- package/esm2022/lib/core/models/report-grid.model.mjs +10 -0
- package/esm2022/lib/core/models/report-layout.model.mjs +9 -0
- package/esm2022/lib/core/models/report-parameter.model.mjs +9 -0
- package/esm2022/lib/core/models/validation.model.mjs +8 -0
- package/esm2022/lib/core/registry/component-category.mjs +8 -0
- package/esm2022/lib/core/registry/component-registry.mjs +90 -0
- package/esm2022/lib/core/registry/index.mjs +2 -0
- package/esm2022/lib/core/registry/property-definition.model.mjs +10 -0
- package/esm2022/lib/core/services/dynamic-form-builder.service.mjs +55 -0
- package/esm2022/lib/core/services/index.mjs +3 -0
- package/esm2022/lib/core/services/report-session-context.service.mjs +314 -0
- package/esm2022/lib/core/tokens/index.mjs +3 -0
- package/esm2022/lib/core/tokens/reporting-config.token.mjs +26 -0
- package/esm2022/lib/core/tokens/session-context.token.mjs +18 -0
- package/esm2022/lib/core/utilities/id-generator.mjs +17 -0
- package/esm2022/lib/core/utilities/index.mjs +3 -0
- package/esm2022/lib/core/utilities/schema-migration.mjs +38 -0
- package/esm2022/lib/core/utils/identifier-humanizer.mjs +88 -0
- package/esm2022/lib/core/validation/index.mjs +2 -0
- package/esm2022/lib/core/validation/validation-factory.mjs +70 -0
- package/esm2022/lib/data-access/adapters/http-lookup.adapter.mjs +107 -0
- package/esm2022/lib/data-access/adapters/http-schema-discovery.adapter.mjs +119 -0
- package/esm2022/lib/data-access/adapters/index.mjs +3 -0
- package/esm2022/lib/data-access/contracts/data-source.contract.mjs +28 -0
- package/esm2022/lib/data-access/contracts/index.mjs +7 -0
- package/esm2022/lib/data-access/contracts/lookup.contract.mjs +6 -0
- package/esm2022/lib/data-access/contracts/master-data.provider.mjs +24 -0
- package/esm2022/lib/data-access/contracts/report-persistence.contract.mjs +25 -0
- package/esm2022/lib/data-access/contracts/schema-discovery.contract.mjs +7 -0
- package/esm2022/lib/data-access/contracts/translation.contract.mjs +9 -0
- package/esm2022/lib/data-access/index.mjs +3 -0
- package/esm2022/lib/features/designer/components/component-palette/component-palette.component.mjs +542 -0
- package/esm2022/lib/features/designer/components/design-canvas/design-canvas.component.mjs +843 -0
- package/esm2022/lib/features/designer/components/property-editor/parameter-binding-editor.component.mjs +556 -0
- package/esm2022/lib/features/designer/components/property-editor/property-editor-datasource.component.mjs +845 -0
- package/esm2022/lib/features/designer/components/property-editor/property-editor-general.component.mjs +185 -0
- package/esm2022/lib/features/designer/components/property-editor/property-editor-grid.component.mjs +452 -0
- package/esm2022/lib/features/designer/components/property-editor/property-editor-layout.component.mjs +350 -0
- package/esm2022/lib/features/designer/components/property-editor/property-editor-report.component.mjs +175 -0
- package/esm2022/lib/features/designer/components/property-editor/property-editor-validation.component.mjs +137 -0
- package/esm2022/lib/features/designer/components/property-editor/property-editor.component.mjs +608 -0
- package/esm2022/lib/features/designer/components/toolbar/designer-toolbar.component.mjs +225 -0
- package/esm2022/lib/features/designer/designer.component.mjs +285 -0
- package/esm2022/lib/features/designer/index.mjs +7 -0
- package/esm2022/lib/features/designer/services/designer-state.service.mjs +310 -0
- package/esm2022/lib/features/designer/services/index.mjs +2 -0
- package/esm2022/lib/features/designer/utilities/canvas-layout.util.mjs +124 -0
- package/esm2022/lib/features/export/index.mjs +2 -0
- package/esm2022/lib/features/export/models/export.models.mjs +2 -0
- package/esm2022/lib/features/export/services/report-export.service.mjs +107 -0
- package/esm2022/lib/features/index.mjs +6 -0
- package/esm2022/lib/features/persistence/index.mjs +2 -0
- package/esm2022/lib/features/persistence/services/index.mjs +4 -0
- package/esm2022/lib/features/persistence/services/report-store.service.mjs +183 -0
- package/esm2022/lib/features/persistence/services/report-versioning.service.mjs +81 -0
- package/esm2022/lib/features/persistence/services/schema-validator.service.mjs +102 -0
- package/esm2022/lib/features/routing/components/routed-report-designer.component.mjs +156 -0
- package/esm2022/lib/features/routing/components/routed-report-runtime.component.mjs +163 -0
- package/esm2022/lib/features/routing/index.mjs +6 -0
- package/esm2022/lib/features/routing/models/report-route.models.mjs +2 -0
- package/esm2022/lib/features/routing/report-routes.mjs +49 -0
- package/esm2022/lib/features/routing/resolvers/report.resolver.mjs +22 -0
- package/esm2022/lib/features/routing/services/report-menu.service.mjs +77 -0
- package/esm2022/lib/features/runtime/dynamic-renderer.component.mjs +222 -0
- package/esm2022/lib/features/runtime/index.mjs +4 -0
- package/esm2022/lib/features/runtime/report-grid-bridge.component.mjs +409 -0
- package/esm2022/lib/features/runtime/report-runtime.component.mjs +147 -0
- package/esm2022/lib/primitives/components/button/rpt-button.component.mjs +88 -0
- package/esm2022/lib/primitives/components/chart-bridge/report-chart-bridge.component.mjs +361 -0
- package/esm2022/lib/primitives/components/checkbox/rpt-checkbox.component.mjs +86 -0
- package/esm2022/lib/primitives/components/date/rpt-date.component.mjs +91 -0
- package/esm2022/lib/primitives/components/dropdown/rpt-dropdown.component.mjs +204 -0
- package/esm2022/lib/primitives/components/icon/rpt-icon.component.mjs +476 -0
- package/esm2022/lib/primitives/components/index.mjs +10 -0
- package/esm2022/lib/primitives/components/input/rpt-input.component.mjs +88 -0
- package/esm2022/lib/primitives/components/kpi-card/rpt-kpi-card.component.mjs +197 -0
- package/esm2022/lib/primitives/components/number/rpt-number.component.mjs +110 -0
- package/esm2022/lib/primitives/index.mjs +3 -0
- package/esm2022/lib/primitives/register-builtins.mjs +328 -0
- package/esm2022/lib/provide-reporting.mjs +92 -0
- package/esm2022/public-api.mjs +9 -0
- package/fesm2022/bways-report.mjs +10360 -0
- package/fesm2022/bways-report.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/core/errors/index.d.ts +1 -0
- package/lib/core/errors/reporting-errors.d.ts +42 -0
- package/lib/core/index.d.ts +7 -0
- package/lib/core/models/component-event.model.d.ts +37 -0
- package/lib/core/models/index.d.ts +11 -0
- package/lib/core/models/report-component.model.d.ts +95 -0
- package/lib/core/models/report-datasource.model.d.ts +39 -0
- package/lib/core/models/report-definition.model.d.ts +100 -0
- package/lib/core/models/report-grid.model.d.ts +73 -0
- package/lib/core/models/report-layout.model.d.ts +43 -0
- package/lib/core/models/report-parameter.model.d.ts +22 -0
- package/lib/core/models/validation.model.d.ts +30 -0
- package/lib/core/registry/component-category.d.ts +16 -0
- package/lib/core/registry/component-registry.d.ts +101 -0
- package/lib/core/registry/index.d.ts +4 -0
- package/lib/core/registry/property-definition.model.d.ts +38 -0
- package/lib/core/services/dynamic-form-builder.service.d.ts +30 -0
- package/lib/core/services/index.d.ts +3 -0
- package/lib/core/services/report-session-context.service.d.ts +87 -0
- package/lib/core/tokens/index.d.ts +4 -0
- package/lib/core/tokens/reporting-config.token.d.ts +42 -0
- package/lib/core/tokens/session-context.token.d.ts +36 -0
- package/lib/core/utilities/id-generator.d.ts +9 -0
- package/lib/core/utilities/index.d.ts +3 -0
- package/lib/core/utilities/schema-migration.d.ts +10 -0
- package/lib/core/utils/identifier-humanizer.d.ts +22 -0
- package/lib/core/validation/index.d.ts +1 -0
- package/lib/core/validation/validation-factory.d.ts +31 -0
- package/lib/data-access/adapters/http-lookup.adapter.d.ts +19 -0
- package/lib/data-access/adapters/http-schema-discovery.adapter.d.ts +20 -0
- package/lib/data-access/adapters/index.d.ts +2 -0
- package/lib/data-access/contracts/data-source.contract.d.ts +37 -0
- package/lib/data-access/contracts/index.d.ts +9 -0
- package/lib/data-access/contracts/lookup.contract.d.ts +32 -0
- package/lib/data-access/contracts/master-data.provider.d.ts +54 -0
- package/lib/data-access/contracts/report-persistence.contract.d.ts +36 -0
- package/lib/data-access/contracts/schema-discovery.contract.d.ts +52 -0
- package/lib/data-access/contracts/translation.contract.d.ts +16 -0
- package/lib/data-access/index.d.ts +2 -0
- package/lib/features/designer/components/component-palette/component-palette.component.d.ts +39 -0
- package/lib/features/designer/components/design-canvas/design-canvas.component.d.ts +42 -0
- package/lib/features/designer/components/property-editor/parameter-binding-editor.component.d.ts +36 -0
- package/lib/features/designer/components/property-editor/property-editor-datasource.component.d.ts +68 -0
- package/lib/features/designer/components/property-editor/property-editor-general.component.d.ts +20 -0
- package/lib/features/designer/components/property-editor/property-editor-grid.component.d.ts +20 -0
- package/lib/features/designer/components/property-editor/property-editor-layout.component.d.ts +18 -0
- package/lib/features/designer/components/property-editor/property-editor-report.component.d.ts +15 -0
- package/lib/features/designer/components/property-editor/property-editor-validation.component.d.ts +12 -0
- package/lib/features/designer/components/property-editor/property-editor.component.d.ts +44 -0
- package/lib/features/designer/components/toolbar/designer-toolbar.component.d.ts +18 -0
- package/lib/features/designer/designer.component.d.ts +36 -0
- package/lib/features/designer/index.d.ts +7 -0
- package/lib/features/designer/services/designer-state.service.d.ts +103 -0
- package/lib/features/designer/services/index.d.ts +2 -0
- package/lib/features/designer/utilities/canvas-layout.util.d.ts +55 -0
- package/lib/features/export/index.d.ts +2 -0
- package/lib/features/export/models/export.models.d.ts +16 -0
- package/lib/features/export/services/report-export.service.d.ts +27 -0
- package/lib/features/index.d.ts +5 -0
- package/lib/features/persistence/index.d.ts +1 -0
- package/lib/features/persistence/services/index.d.ts +5 -0
- package/lib/features/persistence/services/report-store.service.d.ts +53 -0
- package/lib/features/persistence/services/report-versioning.service.d.ts +29 -0
- package/lib/features/persistence/services/schema-validator.service.d.ts +34 -0
- package/lib/features/routing/components/routed-report-designer.component.d.ts +18 -0
- package/lib/features/routing/components/routed-report-runtime.component.d.ts +18 -0
- package/lib/features/routing/index.d.ts +6 -0
- package/lib/features/routing/models/report-route.models.d.ts +41 -0
- package/lib/features/routing/report-routes.d.ts +16 -0
- package/lib/features/routing/resolvers/report.resolver.d.ts +7 -0
- package/lib/features/routing/services/report-menu.service.d.ts +30 -0
- package/lib/features/runtime/dynamic-renderer.component.d.ts +30 -0
- package/lib/features/runtime/index.d.ts +3 -0
- package/lib/features/runtime/report-grid-bridge.component.d.ts +94 -0
- package/lib/features/runtime/report-runtime.component.d.ts +26 -0
- package/lib/primitives/components/button/rpt-button.component.d.ts +19 -0
- package/lib/primitives/components/chart-bridge/report-chart-bridge.component.d.ts +45 -0
- package/lib/primitives/components/checkbox/rpt-checkbox.component.d.ts +14 -0
- package/lib/primitives/components/date/rpt-date.component.d.ts +17 -0
- package/lib/primitives/components/dropdown/rpt-dropdown.component.d.ts +32 -0
- package/lib/primitives/components/icon/rpt-icon.component.d.ts +41 -0
- package/lib/primitives/components/index.d.ts +12 -0
- package/lib/primitives/components/input/rpt-input.component.d.ts +16 -0
- package/lib/primitives/components/kpi-card/rpt-kpi-card.component.d.ts +43 -0
- package/lib/primitives/components/number/rpt-number.component.d.ts +20 -0
- package/lib/primitives/index.d.ts +2 -0
- package/lib/primitives/register-builtins.d.ts +11 -0
- package/lib/provide-reporting.d.ts +75 -0
- package/package.json +55 -0
- package/public-api.d.ts +5 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ReportComponentDefinition } from '../../../core/models/report-component.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type KpiTheme = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
4
|
+
export type TrendDirection = 'up' | 'down' | 'neutral';
|
|
5
|
+
export declare class RptKpiCardComponent {
|
|
6
|
+
/** Optional metadata component definition. */
|
|
7
|
+
readonly definition: import("@angular/core").InputSignal<ReportComponentDefinition | undefined>;
|
|
8
|
+
/** Title of metric (e.g., 'Total Revenue'). */
|
|
9
|
+
readonly customTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
+
/** Metric value. */
|
|
11
|
+
readonly customValue: import("@angular/core").InputSignal<string | number | undefined>;
|
|
12
|
+
/** Currency or unit prefix (e.g. '$'). */
|
|
13
|
+
readonly customPrefix: import("@angular/core").InputSignal<string | undefined>;
|
|
14
|
+
/** Unit suffix (e.g. '%', 'items'). */
|
|
15
|
+
readonly customSuffix: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
/** Theme accent color. */
|
|
17
|
+
readonly customTheme: import("@angular/core").InputSignal<KpiTheme | undefined>;
|
|
18
|
+
/** Icon symbol or emoji. */
|
|
19
|
+
readonly customIcon: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
+
/** Trend direction: up | down | neutral */
|
|
21
|
+
readonly customTrendDirection: import("@angular/core").InputSignal<TrendDirection | undefined>;
|
|
22
|
+
/** Trend percentage value. */
|
|
23
|
+
readonly customTrendValue: import("@angular/core").InputSignal<number | undefined>;
|
|
24
|
+
/** Trend contextual label. */
|
|
25
|
+
readonly customTrendLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
26
|
+
/** Subtitle. */
|
|
27
|
+
readonly customSubtitle: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
readonly title: import("@angular/core").Signal<string>;
|
|
29
|
+
readonly rawValue: import("@angular/core").Signal<string | number>;
|
|
30
|
+
readonly formattedValue: import("@angular/core").Signal<string>;
|
|
31
|
+
readonly prefix: import("@angular/core").Signal<string>;
|
|
32
|
+
readonly suffix: import("@angular/core").Signal<string>;
|
|
33
|
+
readonly theme: import("@angular/core").Signal<KpiTheme>;
|
|
34
|
+
readonly icon: import("@angular/core").Signal<string>;
|
|
35
|
+
readonly trendDirection: import("@angular/core").Signal<TrendDirection>;
|
|
36
|
+
readonly trendValue: import("@angular/core").Signal<number | undefined>;
|
|
37
|
+
readonly hasTrend: import("@angular/core").Signal<boolean>;
|
|
38
|
+
readonly trendArrow: import("@angular/core").Signal<string>;
|
|
39
|
+
readonly trendLabel: import("@angular/core").Signal<string>;
|
|
40
|
+
readonly subtitle: import("@angular/core").Signal<string>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RptKpiCardComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RptKpiCardComponent, "rpt-kpi-card", never, { "definition": { "alias": "definition"; "required": false; "isSignal": true; }; "customTitle": { "alias": "title"; "required": false; "isSignal": true; }; "customValue": { "alias": "value"; "required": false; "isSignal": true; }; "customPrefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "customSuffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "customTheme": { "alias": "theme"; "required": false; "isSignal": true; }; "customIcon": { "alias": "icon"; "required": false; "isSignal": true; }; "customTrendDirection": { "alias": "trendDirection"; "required": false; "isSignal": true; }; "customTrendValue": { "alias": "trendValue"; "required": false; "isSignal": true; }; "customTrendLabel": { "alias": "trendLabel"; "required": false; "isSignal": true; }; "customSubtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { ReportComponentDefinition } from '../../../core/models/report-component.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RptNumberComponent {
|
|
5
|
+
readonly config: import("@angular/core").InputSignal<ReportComponentDefinition>;
|
|
6
|
+
readonly control: import("@angular/core").InputSignal<FormControl<any> | undefined>;
|
|
7
|
+
private readonly fallbackControl;
|
|
8
|
+
readonly formControl: import("@angular/core").Signal<FormControl<any>>;
|
|
9
|
+
readonly elementId: import("@angular/core").Signal<string>;
|
|
10
|
+
readonly placeholder: import("@angular/core").Signal<string>;
|
|
11
|
+
readonly prefix: import("@angular/core").Signal<string>;
|
|
12
|
+
readonly suffix: import("@angular/core").Signal<string>;
|
|
13
|
+
readonly minVal: import("@angular/core").Signal<number>;
|
|
14
|
+
readonly maxVal: import("@angular/core").Signal<number>;
|
|
15
|
+
readonly stepVal: import("@angular/core").Signal<number>;
|
|
16
|
+
readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
17
|
+
readonly errorMessage: import("@angular/core").Signal<string>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RptNumberComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RptNumberComponent, "rpt-number", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "control": { "alias": "control"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentRegistry } from '../core/registry/component-registry';
|
|
2
|
+
/**
|
|
3
|
+
* Registers all built-in primitive components with the ComponentRegistry.
|
|
4
|
+
*
|
|
5
|
+
* This provides the baseline components for any reporting page.
|
|
6
|
+
* Host applications can override any of these by calling `registry.register()`
|
|
7
|
+
* with their own custom component after calling this function.
|
|
8
|
+
*
|
|
9
|
+
* @param registry - The ComponentRegistry instance to populate.
|
|
10
|
+
*/
|
|
11
|
+
export declare function registerBuiltinComponents(registry: ComponentRegistry): void;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reporting library root provider function.
|
|
3
|
+
*
|
|
4
|
+
* Configures the library, its tokens, and registers built-in primitives.
|
|
5
|
+
*/
|
|
6
|
+
import { EnvironmentProviders, Type } from '@angular/core';
|
|
7
|
+
import { ReportingConfig } from './core/tokens/reporting-config.token';
|
|
8
|
+
import { SessionContextProvider, SessionContextSource } from './core/tokens/session-context.token';
|
|
9
|
+
import { ReportDataSourceAdapter } from './data-access/contracts/data-source.contract';
|
|
10
|
+
import { MasterDataProvider } from './data-access/contracts/master-data.provider';
|
|
11
|
+
import { ReportPersistenceAdapter } from './data-access/contracts/report-persistence.contract';
|
|
12
|
+
import { ReportSchemaDiscoveryAdapter } from './data-access/contracts/schema-discovery.contract';
|
|
13
|
+
import { ReportLookupAdapter } from './data-access/contracts/lookup.contract';
|
|
14
|
+
/**
|
|
15
|
+
* Configuration options for `provideReporting()`.
|
|
16
|
+
*/
|
|
17
|
+
export interface ProvideReportingOptions extends Partial<ReportingConfig> {
|
|
18
|
+
/**
|
|
19
|
+
* The Angular component to use for rendering report result grids.
|
|
20
|
+
* BWays-grid is the recommended default. Host can provide any grid component.
|
|
21
|
+
*/
|
|
22
|
+
gridComponent?: Type<unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* The Angular component to use for rendering report visual charts.
|
|
25
|
+
* Host can provide their preferred chart component, or use the built-in SVG charts.
|
|
26
|
+
*/
|
|
27
|
+
chartComponent?: Type<unknown>;
|
|
28
|
+
/** Host's implementation of the data source adapter. */
|
|
29
|
+
dataSourceAdapter?: Type<ReportDataSourceAdapter>;
|
|
30
|
+
/** Host's implementation of the master data provider. */
|
|
31
|
+
masterDataProvider?: Type<MasterDataProvider>;
|
|
32
|
+
/** Host's implementation of the persistence adapter. */
|
|
33
|
+
persistenceAdapter?: Type<ReportPersistenceAdapter>;
|
|
34
|
+
/** Host's implementation of the schema discovery adapter (defaults to HttpReportSchemaDiscoveryAdapter). */
|
|
35
|
+
schemaDiscoveryAdapter?: Type<ReportSchemaDiscoveryAdapter>;
|
|
36
|
+
/** Host's implementation of the lookup adapter (defaults to HttpReportLookupAdapter). */
|
|
37
|
+
lookupAdapter?: Type<ReportLookupAdapter>;
|
|
38
|
+
/**
|
|
39
|
+
* Host application's session context parameters (e.g. { branchId: 1, companyId: 10, userId: 'usr-1' }).
|
|
40
|
+
* Can be a static object, an Angular Signal, an Observable, or a dynamic getter function.
|
|
41
|
+
* Stored procedures automatically bind matching parameters (like @BranchId, @CompanyId) to this context.
|
|
42
|
+
*/
|
|
43
|
+
sessionContext?: SessionContextSource;
|
|
44
|
+
/**
|
|
45
|
+
* Host application service class implementing `SessionContextProvider`.
|
|
46
|
+
* Resolves session parameters dynamically at runtime (e.g. from user auth state, active branch switcher).
|
|
47
|
+
*/
|
|
48
|
+
sessionContextProvider?: Type<SessionContextProvider>;
|
|
49
|
+
/**
|
|
50
|
+
* Factory function that returns a SessionContextSource with dependency injection context.
|
|
51
|
+
* E.g. `sessionContextFactory: () => inject(AuthService).currentSessionSignal`
|
|
52
|
+
*/
|
|
53
|
+
sessionContextFactory?: () => SessionContextSource;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Provides the BWays-Report library to the application.
|
|
57
|
+
*
|
|
58
|
+
* @param options - Configuration and adapter implementations.
|
|
59
|
+
* @returns Environment providers for the reporting library.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* // app.config.ts
|
|
64
|
+
* export const appConfig: ApplicationConfig = {
|
|
65
|
+
* providers: [
|
|
66
|
+
* provideReporting({
|
|
67
|
+
* apiBaseUrl: 'http://localhost:3000/api/reporting',
|
|
68
|
+
* gridComponent: BwaysGridComponent,
|
|
69
|
+
* defaultPageSize: 50,
|
|
70
|
+
* }),
|
|
71
|
+
* ],
|
|
72
|
+
* };
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function provideReporting(options?: ProvideReportingOptions): EnvironmentProviders;
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bways-report",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Enterprise-grade, metadata-driven reporting engine and visual page builder for Angular 18+ ERP applications.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"reporting",
|
|
8
|
+
"report-builder",
|
|
9
|
+
"drag-and-drop",
|
|
10
|
+
"stored-procedures",
|
|
11
|
+
"erp",
|
|
12
|
+
"grid",
|
|
13
|
+
"data-visualization",
|
|
14
|
+
"nestjs"
|
|
15
|
+
],
|
|
16
|
+
"author": "CCPL / BWays Team",
|
|
17
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/ccplProject/BWays-CustomeReport.git"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/ccplProject/BWays-CustomeReport#readme",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/ccplProject/BWays-CustomeReport/issues"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@angular/common": ">=18.0.0",
|
|
28
|
+
"@angular/core": ">=18.0.0",
|
|
29
|
+
"@angular/forms": ">=18.0.0",
|
|
30
|
+
"@angular/cdk": ">=18.0.0",
|
|
31
|
+
"rxjs": "^7.8.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependenciesMeta": {
|
|
34
|
+
"bways-grid": {
|
|
35
|
+
"optional": true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"tslib": "^2.3.0"
|
|
40
|
+
},
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"module": "fesm2022/bways-report.mjs",
|
|
43
|
+
"typings": "index.d.ts",
|
|
44
|
+
"exports": {
|
|
45
|
+
"./package.json": {
|
|
46
|
+
"default": "./package.json"
|
|
47
|
+
},
|
|
48
|
+
".": {
|
|
49
|
+
"types": "./index.d.ts",
|
|
50
|
+
"esm2022": "./esm2022/bways-report.mjs",
|
|
51
|
+
"esm": "./esm2022/bways-report.mjs",
|
|
52
|
+
"default": "./fesm2022/bways-report.mjs"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|