we-report-angular 0.9.1 → 0.11.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/esm2022/lib/designer/property-panel.component.mjs +68 -3
- package/esm2022/lib/designer/we-report-designer.component.mjs +5 -3
- package/esm2022/lib/locales/de.mjs +28 -1
- package/esm2022/lib/locales/es.mjs +28 -1
- package/esm2022/lib/locales/fr.mjs +28 -1
- package/esm2022/lib/viewer/we-report-viewer.component.mjs +8 -3
- package/esm2022/lib/we-report-locale.mjs +55 -1
- package/fesm2022/we-report-angular.mjs +213 -6
- package/fesm2022/we-report-angular.mjs.map +1 -1
- package/lib/designer/property-panel.component.d.ts +16 -0
- package/lib/designer/we-report-designer.component.d.ts +4 -2
- package/lib/viewer/we-report-viewer.component.d.ts +7 -2
- package/lib/we-report-locale.d.ts +27 -0
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ import { DesignerField } from './designer-fields';
|
|
|
5
5
|
import { AlignEdge, DesignerState } from './designer-state';
|
|
6
6
|
import { SimpleCondition } from './formatting-rule';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
type EInvoicePart = 'invoice' | 'seller' | 'buyer' | 'line';
|
|
8
9
|
/** Plain-language properties of the selection: a control, a band, or the report itself. */
|
|
9
10
|
export declare class PropertyPanelComponent {
|
|
10
11
|
readonly strings: import("@angular/core").InputSignal<WeReportLocale>;
|
|
@@ -66,6 +67,20 @@ export declare class PropertyPanelComponent {
|
|
|
66
67
|
protected setReport<K extends 'name'>(key: K, value: string): void;
|
|
67
68
|
/** Empty means "use the app's setting". */
|
|
68
69
|
protected setCulture(key: 'locale' | 'currency', value: string): void;
|
|
70
|
+
protected readonly eInvoiceGroups: {
|
|
71
|
+
part: EInvoicePart;
|
|
72
|
+
title?: keyof WeReportLocale;
|
|
73
|
+
fields: {
|
|
74
|
+
key: string;
|
|
75
|
+
label: keyof WeReportLocale;
|
|
76
|
+
example: string;
|
|
77
|
+
}[];
|
|
78
|
+
}[];
|
|
79
|
+
protected eInvoiceValue(part: EInvoicePart, key: string): string;
|
|
80
|
+
/** An empty formula leaves the field out. */
|
|
81
|
+
protected setEInvoice(part: EInvoicePart, key: string, value: string): void;
|
|
82
|
+
/** A new mapping starts with the required fields empty, so the preview lists what is still missing. */
|
|
83
|
+
protected setEInvoiceOn(on: boolean): void;
|
|
69
84
|
/** Empty text removes the watermark. */
|
|
70
85
|
protected setWatermark(patch: Partial<Watermark>): void;
|
|
71
86
|
protected setPaper(paper: string): void;
|
|
@@ -140,3 +155,4 @@ export declare class PropertyPanelComponent {
|
|
|
140
155
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyPanelComponent, never>;
|
|
141
156
|
static ɵcmp: i0.ɵɵComponentDeclaration<PropertyPanelComponent, "we-report-property-panel", never, { "strings": { "alias": "strings"; "required": true; "isSignal": true; }; "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "fontFamilies": { "alias": "fontFamilies"; "required": false; "isSignal": true; }; "advanced": { "alias": "advanced"; "required": false; "isSignal": true; }; "lists": { "alias": "lists"; "required": false; "isSignal": true; }; "listLabels": { "alias": "listLabels"; "required": false; "isSignal": true; }; "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
142
157
|
}
|
|
158
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Band, BandKind, ReportControl, ReportControlType, ReportDefinition, ReportIssue, ReportStyle, TextAlign } from 'we-report-core';
|
|
1
|
+
import { Band, BandKind, PdfOptions, ReportControl, ReportControlType, ReportDefinition, ReportIssue, ReportStyle, TextAlign } from 'we-report-core';
|
|
2
2
|
import { WeReportIcons } from '../we-report-icons';
|
|
3
3
|
import { WeReportLocale } from '../we-report-locale';
|
|
4
4
|
import { DesignSample, DesignerDragData } from './design-surface.component';
|
|
@@ -21,6 +21,8 @@ export declare class WeReportDesignerComponent {
|
|
|
21
21
|
readonly zoom: import("@angular/core").InputSignal<number>;
|
|
22
22
|
/** Fetch used for web-service data sources (testing in the designer and the preview). */
|
|
23
23
|
readonly fetchFn: import("@angular/core").InputSignal<typeof fetch | undefined>;
|
|
24
|
+
/** Handed to the preview's PDF export — `pdfa`, `attachments` or a `facturX` e-invoice (see the viewer's `pdfOptions`). */
|
|
25
|
+
readonly pdfOptions: import("@angular/core").InputSignal<Partial<PdfOptions>>;
|
|
24
26
|
/** When the report is a sub-report: a sample of the row around it, which its `[^.field]` reads. */
|
|
25
27
|
readonly outerRow: import("@angular/core").InputSignal<unknown>;
|
|
26
28
|
/** Designing a sub-report inside another designer: its page comes from the box (no paper settings). */
|
|
@@ -249,5 +251,5 @@ export declare class WeReportDesignerComponent {
|
|
|
249
251
|
protected fixIssue(issue: ReportIssue): void;
|
|
250
252
|
protected onKeydown(e: KeyboardEvent): void;
|
|
251
253
|
static ɵfac: i0.ɵɵFactoryDeclaration<WeReportDesignerComponent, never>;
|
|
252
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WeReportDesignerComponent, "we-report-designer", never, { "report": { "alias": "report"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "fetchFn": { "alias": "fetchFn"; "required": false; "isSignal": true; }; "outerRow": { "alias": "outerRow"; "required": false; "isSignal": true; }; "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; "fieldLabels": { "alias": "fieldLabels"; "required": false; "isSignal": true; }; }, { "report": "reportChange"; }, never, never, true, never>;
|
|
254
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WeReportDesignerComponent, "we-report-designer", never, { "report": { "alias": "report"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "fetchFn": { "alias": "fetchFn"; "required": false; "isSignal": true; }; "pdfOptions": { "alias": "pdfOptions"; "required": false; "isSignal": true; }; "outerRow": { "alias": "outerRow"; "required": false; "isSignal": true; }; "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; "fieldLabels": { "alias": "fieldLabels"; "required": false; "isSignal": true; }; }, { "report": "reportChange"; }, never, never, true, never>;
|
|
253
255
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayoutBookmark, LayoutDocument, LayoutProblem, ReportDefinition, ReportParameter } from 'we-report-core';
|
|
1
|
+
import { LayoutBookmark, LayoutDocument, LayoutProblem, PdfOptions, ReportDefinition, ReportParameter } from 'we-report-core';
|
|
2
2
|
import { WeReportLocale } from '../we-report-locale';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/** A part of the viewer's toolbar that the host can leave out (`hide`). */
|
|
@@ -22,6 +22,11 @@ export declare class WeReportViewerComponent {
|
|
|
22
22
|
readonly hide: import("@angular/core").InputSignal<readonly WeReportViewerTool[]>;
|
|
23
23
|
/** Fetch used for web-service data sources (add auth, or route through your backend). */
|
|
24
24
|
readonly fetchFn: import("@angular/core").InputSignal<typeof fetch | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Extra PDF options for the PDF button and `toPdf()`: `pdfa: true` for an archivable PDF/A-3b,
|
|
27
|
+
* `attachments`, or `facturX` with the invoice's XML for a Factur-X / ZUGFeRD e-invoice.
|
|
28
|
+
*/
|
|
29
|
+
readonly pdfOptions: import("@angular/core").InputSignal<Partial<PdfOptions>>;
|
|
25
30
|
readonly problems: import("@angular/core").OutputEmitterRef<LayoutProblem[]>;
|
|
26
31
|
readonly rendered: import("@angular/core").OutputEmitterRef<LayoutDocument>;
|
|
27
32
|
protected readonly config: import("../we-report-config").WeReportConfig;
|
|
@@ -125,5 +130,5 @@ export declare class WeReportViewerComponent {
|
|
|
125
130
|
/** Prints the PDF through a hidden frame, so page size and margins are exact. */
|
|
126
131
|
protected print(): Promise<void>;
|
|
127
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<WeReportViewerComponent, never>;
|
|
128
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WeReportViewerComponent, "we-report-viewer", never, { "report": { "alias": "report"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "outerRow": { "alias": "outerRow"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "printDate": { "alias": "printDate"; "required": false; "isSignal": true; }; "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; "hide": { "alias": "hide"; "required": false; "isSignal": true; }; "fetchFn": { "alias": "fetchFn"; "required": false; "isSignal": true; }; }, { "problems": "problems"; "rendered": "rendered"; }, never, never, true, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WeReportViewerComponent, "we-report-viewer", never, { "report": { "alias": "report"; "required": true; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "outerRow": { "alias": "outerRow"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "printDate": { "alias": "printDate"; "required": false; "isSignal": true; }; "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; "hide": { "alias": "hide"; "required": false; "isSignal": true; }; "fetchFn": { "alias": "fetchFn"; "required": false; "isSignal": true; }; "pdfOptions": { "alias": "pdfOptions"; "required": false; "isSignal": true; }; }, { "problems": "problems"; "rendered": "rendered"; }, never, never, true, never>;
|
|
129
134
|
}
|
|
@@ -423,6 +423,33 @@ export interface WeReportLocale {
|
|
|
423
423
|
functionHelp: Record<string, string>;
|
|
424
424
|
watermarkHint: string;
|
|
425
425
|
watermarkAngle: string;
|
|
426
|
+
eInvoice: string;
|
|
427
|
+
eInvoiceHint: string;
|
|
428
|
+
eInvoiceAdd: string;
|
|
429
|
+
eInvoiceRemove: string;
|
|
430
|
+
eInvoiceSeller: string;
|
|
431
|
+
eInvoiceBuyer: string;
|
|
432
|
+
eInvoiceLine: string;
|
|
433
|
+
eiNumber: string;
|
|
434
|
+
eiIssueDate: string;
|
|
435
|
+
eiDueDate: string;
|
|
436
|
+
eiNote: string;
|
|
437
|
+
eiBuyerReference: string;
|
|
438
|
+
eiIban: string;
|
|
439
|
+
eiBic: string;
|
|
440
|
+
eiName: string;
|
|
441
|
+
eiAddress: string;
|
|
442
|
+
eiPostcode: string;
|
|
443
|
+
eiCity: string;
|
|
444
|
+
eiCountry: string;
|
|
445
|
+
eiVatId: string;
|
|
446
|
+
eiItemCode: string;
|
|
447
|
+
eiItemName: string;
|
|
448
|
+
eiQuantity: string;
|
|
449
|
+
eiUnitPrice: string;
|
|
450
|
+
eiVatRate: string;
|
|
451
|
+
eiVatCategory: string;
|
|
452
|
+
eiUnitCode: string;
|
|
426
453
|
conditionalHint: string;
|
|
427
454
|
addRule: string;
|
|
428
455
|
ruleWhen: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "we-report-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Free, native Angular banded report designer and viewer — drag-and-drop design, paper sizes, data binding, barcodes, PDF export. No backend required.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Emre CIRIK",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"tslib": "^2.3.0",
|
|
35
|
-
"we-report-core": "~0.
|
|
35
|
+
"we-report-core": "~0.11.0"
|
|
36
36
|
},
|
|
37
37
|
"sideEffects": false,
|
|
38
38
|
"module": "fesm2022/we-report-angular.mjs",
|