we-report-angular 0.1.0 → 0.2.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 +21 -21
- package/README.md +6 -0
- package/esm2022/lib/designer/bindable-input.component.mjs +66 -52
- package/esm2022/lib/designer/control-factory.mjs +4 -1
- package/esm2022/lib/designer/data-sources-dialog.component.mjs +3 -3
- package/esm2022/lib/designer/database-source-editor.component.mjs +251 -251
- package/esm2022/lib/designer/design-surface.component.mjs +258 -163
- package/esm2022/lib/designer/designer-state.mjs +134 -1
- package/esm2022/lib/designer/expression-editor.component.mjs +168 -0
- package/esm2022/lib/designer/formatting-rule.mjs +41 -0
- package/esm2022/lib/designer/property-panel.component.mjs +98 -3
- package/esm2022/lib/designer/we-report-designer.component.mjs +109 -20
- package/esm2022/lib/locales/de.mjs +326 -0
- package/esm2022/lib/locales/es.mjs +326 -0
- package/esm2022/lib/locales/fr.mjs +326 -0
- package/esm2022/lib/viewer/we-report-page.component.mjs +167 -167
- package/esm2022/lib/viewer/we-report-viewer.component.mjs +139 -139
- package/esm2022/lib/we-report-config.mjs +1 -1
- package/esm2022/lib/we-report-fonts.service.mjs +1 -1
- package/esm2022/lib/we-report-icons.mjs +19 -1
- package/esm2022/lib/we-report-locale.mjs +215 -1
- package/esm2022/lib/we-report-locales.mjs +21 -0
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/we-report-angular.mjs +2646 -789
- package/fesm2022/we-report-angular.mjs.map +1 -1
- package/lib/designer/bindable-input.component.d.ts +1 -0
- package/lib/designer/design-surface.component.d.ts +19 -0
- package/lib/designer/designer-state.d.ts +23 -0
- package/lib/designer/expression-editor.component.d.ts +39 -0
- package/lib/designer/formatting-rule.d.ts +14 -0
- package/lib/designer/property-panel.component.d.ts +38 -2
- package/lib/designer/we-report-designer.component.d.ts +21 -1
- package/lib/locales/de.d.ts +3 -0
- package/lib/locales/es.d.ts +3 -0
- package/lib/locales/fr.d.ts +3 -0
- package/lib/we-report-icons.d.ts +18 -0
- package/lib/we-report-locale.d.ts +75 -0
- package/lib/we-report-locales.d.ts +8 -0
- package/package.json +2 -2
- package/public-api.d.ts +4 -0
|
@@ -12,6 +12,7 @@ export declare class BindableInputComponent {
|
|
|
12
12
|
readonly strings: import("@angular/core").InputSignal<WeReportLocale>;
|
|
13
13
|
readonly multiline: import("@angular/core").InputSignal<boolean>;
|
|
14
14
|
readonly valueChange: import("@angular/core").OutputEmitterRef<Bindable<string>>;
|
|
15
|
+
protected readonly editorOpen: import("@angular/core").WritableSignal<boolean>;
|
|
15
16
|
protected readonly bound: import("@angular/core").Signal<boolean>;
|
|
16
17
|
protected readonly expression: import("@angular/core").Signal<string>;
|
|
17
18
|
protected readonly fixedText: import("@angular/core").Signal<string>;
|
|
@@ -42,6 +42,21 @@ export declare class DesignSurfaceComponent implements OnDestroy {
|
|
|
42
42
|
protected readonly handles: Handle[];
|
|
43
43
|
protected readonly guides: import("@angular/core").WritableSignal<Guide[]>;
|
|
44
44
|
protected readonly geometry: import("@angular/core").Signal<import("we-report-core").PageGeometry>;
|
|
45
|
+
/** Top ruler in screen pixels: 0 at the left margin, a tick per millimetre, a label per centimetre. */
|
|
46
|
+
protected readonly ruler: import("@angular/core").Signal<{
|
|
47
|
+
width: number;
|
|
48
|
+
left: number;
|
|
49
|
+
right: number;
|
|
50
|
+
ticks: string;
|
|
51
|
+
labels: {
|
|
52
|
+
x: number;
|
|
53
|
+
text: string;
|
|
54
|
+
}[];
|
|
55
|
+
selection: {
|
|
56
|
+
x: number;
|
|
57
|
+
width: number;
|
|
58
|
+
} | null;
|
|
59
|
+
}>;
|
|
45
60
|
protected readonly padding: import("@angular/core").Signal<string>;
|
|
46
61
|
private op;
|
|
47
62
|
private readonly onMove;
|
|
@@ -84,6 +99,10 @@ export declare class DesignSurfaceComponent implements OnDestroy {
|
|
|
84
99
|
private snapToGrid;
|
|
85
100
|
protected onDragOver(e: DragEvent): void;
|
|
86
101
|
protected onDrop(e: DragEvent, band: Band): void;
|
|
102
|
+
protected readonly defaultWatermarkColor = "#e3e6ea";
|
|
103
|
+
/** Fixed watermark text, or its formula, shown faintly on the design page. */
|
|
104
|
+
protected watermarkText(): string;
|
|
105
|
+
protected chartLabel(c: ReportControl): string;
|
|
87
106
|
/** Creates controls for a drop at (x, y) mm inside `band`. */
|
|
88
107
|
dropAt(data: DesignerDragData, band: Band, x: number, y: number): void;
|
|
89
108
|
private growBand;
|
|
@@ -9,6 +9,7 @@ export type Selection = {
|
|
|
9
9
|
kind: 'band';
|
|
10
10
|
id: string;
|
|
11
11
|
};
|
|
12
|
+
export type AlignEdge = 'left' | 'center' | 'right' | 'top' | 'middle' | 'bottom';
|
|
12
13
|
/**
|
|
13
14
|
* The designer's document, selection and undo history. Every edit goes through `update`, which
|
|
14
15
|
* snapshots the previous state — so every edit is undoable and observable.
|
|
@@ -18,6 +19,12 @@ export declare class DesignerState {
|
|
|
18
19
|
readonly selection: import("@angular/core").WritableSignal<Selection>;
|
|
19
20
|
readonly canUndo: import("@angular/core").WritableSignal<boolean>;
|
|
20
21
|
readonly canRedo: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
+
/** The first data row and its scope, for live values in the design and the formula editor. */
|
|
23
|
+
readonly sample: import("@angular/core").WritableSignal<{
|
|
24
|
+
row: unknown;
|
|
25
|
+
rows: readonly unknown[];
|
|
26
|
+
parent: unknown;
|
|
27
|
+
} | null>;
|
|
21
28
|
readonly selectedControls: import("@angular/core").Signal<ReportControl[]>;
|
|
22
29
|
readonly selectedBand: import("@angular/core").Signal<Band | null>;
|
|
23
30
|
private past;
|
|
@@ -43,6 +50,22 @@ export declare class DesignerState {
|
|
|
43
50
|
deleteSelection(): void;
|
|
44
51
|
removeBand(id: string): void;
|
|
45
52
|
duplicateSelection(): void;
|
|
53
|
+
/** Copies the selected controls to the designer clipboard (shared by every designer on the page). */
|
|
54
|
+
copySelection(): boolean;
|
|
55
|
+
cutSelection(): void;
|
|
56
|
+
/** Pastes into `bandId`, else the selected band, else each control's original kind of band. */
|
|
57
|
+
paste(bandId?: string): void;
|
|
58
|
+
hasClipboard(): boolean;
|
|
59
|
+
/** Selects every control of the selected band, or of the whole report. */
|
|
60
|
+
selectAll(): void;
|
|
61
|
+
/** Aligns the selection to the first selected control (the one clicked first). */
|
|
62
|
+
align(edge: AlignEdge): void;
|
|
63
|
+
/** Equal gaps between three or more controls, keeping the outermost two in place. */
|
|
64
|
+
distribute(axis: 'h' | 'v'): void;
|
|
65
|
+
/** Gives the selection the width and/or height of the first selected control. */
|
|
66
|
+
sameSize(dimension: 'width' | 'height' | 'both'): void;
|
|
67
|
+
/** Draw order inside a band: later controls paint on top. */
|
|
68
|
+
arrange(to: 'front' | 'back'): void;
|
|
46
69
|
select(id: string, additive: boolean): void;
|
|
47
70
|
private pruneSelection;
|
|
48
71
|
private syncFlags;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { FunctionCategory, FunctionInfo } from 'we-report-core';
|
|
3
|
+
import { WeReportLocale } from '../we-report-locale';
|
|
4
|
+
import { DesignerField } from './designer-fields';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* A sheet for writing a formula: fields, parameters and every function with a one-line
|
|
8
|
+
* explanation, inserted at the cursor, and the result for the first data row as you type.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ExpressionEditorComponent implements AfterViewInit {
|
|
11
|
+
readonly expression: import("@angular/core").InputSignal<string>;
|
|
12
|
+
readonly fields: import("@angular/core").InputSignal<DesignerField[]>;
|
|
13
|
+
readonly strings: import("@angular/core").InputSignal<WeReportLocale>;
|
|
14
|
+
readonly applied: import("@angular/core").OutputEmitterRef<string>;
|
|
15
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
16
|
+
private readonly state;
|
|
17
|
+
private readonly config;
|
|
18
|
+
private readonly area;
|
|
19
|
+
protected readonly categories: {
|
|
20
|
+
id: FunctionCategory;
|
|
21
|
+
label: keyof WeReportLocale;
|
|
22
|
+
}[];
|
|
23
|
+
protected readonly draft: import("@angular/core").WritableSignal<string>;
|
|
24
|
+
protected readonly category: import("@angular/core").WritableSignal<FunctionCategory>;
|
|
25
|
+
protected readonly parameters: import("@angular/core").Signal<import("we-report-core").ReportParameter[]>;
|
|
26
|
+
protected readonly visibleFunctions: import("@angular/core").Signal<FunctionInfo[]>;
|
|
27
|
+
/** What the formula gives for the first row, or why it cannot be evaluated. */
|
|
28
|
+
protected readonly result: import("@angular/core").Signal<{
|
|
29
|
+
text: string;
|
|
30
|
+
error: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
/** Inserts at the caret (replacing a selection); `caretBack` moves the caret left afterwards. */
|
|
34
|
+
protected insert(text: string, caretBack?: number): void;
|
|
35
|
+
/** Inserts `Name()` and puts the cursor between the brackets. */
|
|
36
|
+
protected insertFunction(f: FunctionInfo): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpressionEditorComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpressionEditorComponent, "we-report-expression-editor", never, { "expression": { "alias": "expression"; "required": false; "isSignal": true; }; "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "strings": { "alias": "strings"; "required": true; "isSignal": true; }; }, { "applied": "applied"; "closed": "closed"; }, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** The no-formula form of a conditional-formatting rule: `[field] op value`. */
|
|
2
|
+
export interface SimpleCondition {
|
|
3
|
+
field: string;
|
|
4
|
+
op: ConditionOp;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export type ConditionOp = '=' | '!=' | '<' | '<=' | '>' | '>=' | 'contains';
|
|
8
|
+
export declare const CONDITION_OPS: {
|
|
9
|
+
op: ConditionOp;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
export declare function buildCondition(c: SimpleCondition): string;
|
|
13
|
+
/** Reads a formula back into the simple form, or `null` when it is something else. */
|
|
14
|
+
export declare function parseCondition(expression: string): SimpleCondition | null;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Band, Bindable, BorderStyle, ReportControl, ReportStyle } from 'we-report-core';
|
|
1
|
+
import { Band, Bindable, BorderStyle, ChartAggregate, ChartType, FormattingRule, Watermark, ReportControl, ReportStyle } from 'we-report-core';
|
|
2
|
+
import { WeReportIcons } from '../we-report-icons';
|
|
2
3
|
import { WeReportLocale } from '../we-report-locale';
|
|
3
4
|
import { DesignerField } from './designer-fields';
|
|
4
|
-
import { DesignerState } from './designer-state';
|
|
5
|
+
import { AlignEdge, DesignerState } from './designer-state';
|
|
6
|
+
import { SimpleCondition } from './formatting-rule';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/** Plain-language properties of the selection: a control, a band, or the report itself. */
|
|
7
9
|
export declare class PropertyPanelComponent {
|
|
@@ -16,6 +18,28 @@ export declare class PropertyPanelComponent {
|
|
|
16
18
|
value: string;
|
|
17
19
|
key: keyof WeReportLocale;
|
|
18
20
|
}[];
|
|
21
|
+
protected readonly alignActions: {
|
|
22
|
+
edge: AlignEdge;
|
|
23
|
+
icon: keyof WeReportIcons;
|
|
24
|
+
label: keyof WeReportLocale & `arrange${string}`;
|
|
25
|
+
}[];
|
|
26
|
+
protected readonly chartTypes: {
|
|
27
|
+
type: ChartType;
|
|
28
|
+
label: keyof WeReportLocale;
|
|
29
|
+
}[];
|
|
30
|
+
protected readonly cultures: {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
}[];
|
|
34
|
+
protected readonly currencies: string[];
|
|
35
|
+
protected readonly aggregates: {
|
|
36
|
+
value: ChartAggregate;
|
|
37
|
+
label: keyof WeReportLocale;
|
|
38
|
+
}[];
|
|
39
|
+
protected readonly conditionOps: {
|
|
40
|
+
op: import("./formatting-rule").ConditionOp;
|
|
41
|
+
label: string;
|
|
42
|
+
}[];
|
|
19
43
|
protected readonly controls: import("@angular/core").Signal<ReportControl[]>;
|
|
20
44
|
protected readonly control: import("@angular/core").Signal<ReportControl | null>;
|
|
21
45
|
protected readonly band: import("@angular/core").Signal<Band | null>;
|
|
@@ -24,6 +48,10 @@ export declare class PropertyPanelComponent {
|
|
|
24
48
|
protected readonly hasText: import("@angular/core").Signal<boolean>;
|
|
25
49
|
protected readonly formatIsCustom: import("@angular/core").Signal<boolean>;
|
|
26
50
|
protected setReport<K extends 'name'>(key: K, value: string): void;
|
|
51
|
+
/** Empty means "use the app's setting". */
|
|
52
|
+
protected setCulture(key: 'locale' | 'currency', value: string): void;
|
|
53
|
+
/** Empty text removes the watermark. */
|
|
54
|
+
protected setWatermark(patch: Partial<Watermark>): void;
|
|
27
55
|
protected setPaper(paper: string): void;
|
|
28
56
|
protected setPage(key: 'orientation' | 'width' | 'height', value: string): void;
|
|
29
57
|
protected setMargin(side: 'top' | 'right' | 'bottom' | 'left', value: string): void;
|
|
@@ -38,6 +66,14 @@ export declare class PropertyPanelComponent {
|
|
|
38
66
|
protected setBindable(key: 'text' | 'value' | 'source' | 'checked' | 'visible', value: Bindable<string>): void;
|
|
39
67
|
protected visibleValue(c: ReportControl): Bindable<string>;
|
|
40
68
|
protected setVisible(value: Bindable<string>): void;
|
|
69
|
+
protected setExpression(key: 'category' | 'value', expression: string): void;
|
|
70
|
+
protected condition(when: string): SimpleCondition | null;
|
|
71
|
+
private updateRules;
|
|
72
|
+
protected addRule(): void;
|
|
73
|
+
protected removeRule(index: number): void;
|
|
74
|
+
protected setRule(index: number, patch: Partial<FormattingRule>): void;
|
|
75
|
+
protected setCondition(index: number, current: SimpleCondition, key: keyof SimpleCondition, value: string): void;
|
|
76
|
+
protected setRuleStyle<K extends keyof ReportStyle>(index: number, key: K, value: ReportStyle[K] | undefined): void;
|
|
41
77
|
protected checkedValue(c: ReportControl): Bindable<string>;
|
|
42
78
|
protected setStyle<K extends keyof ReportStyle>(key: K, value: ReportStyle[K] | undefined): void;
|
|
43
79
|
protected setBorder(patch: Partial<BorderStyle> | null): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Band, BandKind, ReportControlType, ReportDefinition, ReportIssue } from 'we-report-core';
|
|
1
|
+
import { Band, BandKind, ReportControl, ReportControlType, ReportDefinition, ReportIssue } from 'we-report-core';
|
|
2
2
|
import { WeReportIcons } from '../we-report-icons';
|
|
3
3
|
import { WeReportLocale } from '../we-report-locale';
|
|
4
4
|
import { DesignSample } from './design-surface.component';
|
|
@@ -37,6 +37,15 @@ export declare class WeReportDesignerComponent {
|
|
|
37
37
|
protected readonly bandMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
38
38
|
protected readonly dataDialogOpen: import("@angular/core").WritableSignal<boolean>;
|
|
39
39
|
protected readonly problemsOpen: import("@angular/core").WritableSignal<boolean>;
|
|
40
|
+
protected readonly leftTab: import("@angular/core").WritableSignal<"add" | "outline">;
|
|
41
|
+
/** Right-click menu: screen position and the band it was opened on. */
|
|
42
|
+
protected readonly contextMenu: import("@angular/core").WritableSignal<{
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
bandId: string | null;
|
|
46
|
+
onControl: boolean;
|
|
47
|
+
} | null>;
|
|
48
|
+
private readonly canvas;
|
|
40
49
|
/** Design problems, checked on every edit; field names are judged only when there is data. */
|
|
41
50
|
protected readonly issues: import("@angular/core").Signal<ReportIssue[]>;
|
|
42
51
|
/** Show the first data row inside bound controls instead of their formulas. */
|
|
@@ -49,6 +58,17 @@ export declare class WeReportDesignerComponent {
|
|
|
49
58
|
protected readonly allFields: import("@angular/core").Signal<DesignerField[]>;
|
|
50
59
|
protected readonly addableBands: import("@angular/core").Signal<BandKind[]>;
|
|
51
60
|
constructor();
|
|
61
|
+
/** Short label of a control for the outline: its name, its text or formula, else its type. */
|
|
62
|
+
protected outlineLabel(c: ReportControl): string;
|
|
63
|
+
protected outlineIcon(c: ReportControl): keyof WeReportIcons;
|
|
64
|
+
protected selectFromOutline(e: MouseEvent, id: string): void;
|
|
65
|
+
protected isSelected(id: string): boolean;
|
|
66
|
+
protected fitWidth(): void;
|
|
67
|
+
protected onCanvasWheel(e: WheelEvent): void;
|
|
68
|
+
protected openContextMenu(e: MouseEvent): void;
|
|
69
|
+
/** Runs a context-menu command and closes the menu. */
|
|
70
|
+
protected menu(action: () => void): void;
|
|
71
|
+
protected closeMenus(e: PointerEvent): void;
|
|
52
72
|
protected iconName(name: string): keyof WeReportIcons;
|
|
53
73
|
protected setZoom(value: number): void;
|
|
54
74
|
protected onToolDragStart(e: DragEvent, item: {
|
package/lib/we-report-icons.d.ts
CHANGED
|
@@ -21,6 +21,24 @@ export interface WeReportIcons {
|
|
|
21
21
|
preview: string;
|
|
22
22
|
design: string;
|
|
23
23
|
database: string;
|
|
24
|
+
chart: string;
|
|
25
|
+
arrangeLeft: string;
|
|
26
|
+
arrangeCenter: string;
|
|
27
|
+
arrangeRight: string;
|
|
28
|
+
arrangeTop: string;
|
|
29
|
+
arrangeMiddle: string;
|
|
30
|
+
arrangeBottom: string;
|
|
31
|
+
distributeH: string;
|
|
32
|
+
distributeV: string;
|
|
33
|
+
sameWidth: string;
|
|
34
|
+
sameHeight: string;
|
|
35
|
+
bringToFront: string;
|
|
36
|
+
sendToBack: string;
|
|
37
|
+
cut: string;
|
|
38
|
+
copy: string;
|
|
39
|
+
paste: string;
|
|
40
|
+
outline: string;
|
|
41
|
+
fitWidth: string;
|
|
24
42
|
}
|
|
25
43
|
export declare const WE_REPORT_DEFAULT_ICONS: WeReportIcons;
|
|
26
44
|
export declare const WE_REPORT_ICONS: InjectionToken<WeReportIcons>;
|
|
@@ -23,6 +23,32 @@ export interface WeReportLocale {
|
|
|
23
23
|
redo: string;
|
|
24
24
|
delete: string;
|
|
25
25
|
duplicate: string;
|
|
26
|
+
cut: string;
|
|
27
|
+
copy: string;
|
|
28
|
+
paste: string;
|
|
29
|
+
selectAll: string;
|
|
30
|
+
arrange: string;
|
|
31
|
+
arrangeLeft: string;
|
|
32
|
+
arrangeCenter: string;
|
|
33
|
+
arrangeRight: string;
|
|
34
|
+
arrangeTop: string;
|
|
35
|
+
arrangeMiddle: string;
|
|
36
|
+
arrangeBottom: string;
|
|
37
|
+
distributeH: string;
|
|
38
|
+
distributeV: string;
|
|
39
|
+
sameWidth: string;
|
|
40
|
+
sameHeight: string;
|
|
41
|
+
bringToFront: string;
|
|
42
|
+
sendToBack: string;
|
|
43
|
+
arrangeHint: string;
|
|
44
|
+
explorer: string;
|
|
45
|
+
/** `{0}` = number of selected items. */
|
|
46
|
+
itemsSelected: string;
|
|
47
|
+
explorerHint: string;
|
|
48
|
+
emptyBand: string;
|
|
49
|
+
add: string;
|
|
50
|
+
data: string;
|
|
51
|
+
fitWidth: string;
|
|
26
52
|
basicMode: string;
|
|
27
53
|
advancedMode: string;
|
|
28
54
|
toolbox: string;
|
|
@@ -202,6 +228,55 @@ export interface WeReportLocale {
|
|
|
202
228
|
issueOverlap: string;
|
|
203
229
|
fixIt: string;
|
|
204
230
|
noProblems: string;
|
|
231
|
+
chartType: string;
|
|
232
|
+
chartColumn: string;
|
|
233
|
+
chartBar: string;
|
|
234
|
+
chartLine: string;
|
|
235
|
+
chartPie: string;
|
|
236
|
+
chartDoughnut: string;
|
|
237
|
+
chartCategory: string;
|
|
238
|
+
chartValue: string;
|
|
239
|
+
chartAggregate: string;
|
|
240
|
+
aggSum: string;
|
|
241
|
+
aggCount: string;
|
|
242
|
+
aggAvg: string;
|
|
243
|
+
aggMin: string;
|
|
244
|
+
aggMax: string;
|
|
245
|
+
chartTitle: string;
|
|
246
|
+
showValues: string;
|
|
247
|
+
showLegend: string;
|
|
248
|
+
chartHint: string;
|
|
249
|
+
conditionalFormatting: string;
|
|
250
|
+
watermark: string;
|
|
251
|
+
reportLocale: string;
|
|
252
|
+
reportLocaleRegion: string;
|
|
253
|
+
reportCurrency: string;
|
|
254
|
+
reportLocaleDefault: string;
|
|
255
|
+
reportLocaleHint: string;
|
|
256
|
+
formulaEditor: string;
|
|
257
|
+
formulaEditorHint: string;
|
|
258
|
+
formulaResult: string;
|
|
259
|
+
formulaEmpty: string;
|
|
260
|
+
apply: string;
|
|
261
|
+
cancel: string;
|
|
262
|
+
fnLogic: string;
|
|
263
|
+
fnText: string;
|
|
264
|
+
fnNumber: string;
|
|
265
|
+
fnDate: string;
|
|
266
|
+
fnAggregate: string;
|
|
267
|
+
functions: string;
|
|
268
|
+
openFormulaEditor: string;
|
|
269
|
+
/** One sentence per function of `EXPRESSION_FUNCTIONS`, keyed by name. */
|
|
270
|
+
functionHelp: Record<string, string>;
|
|
271
|
+
watermarkHint: string;
|
|
272
|
+
watermarkAngle: string;
|
|
273
|
+
conditionalHint: string;
|
|
274
|
+
addRule: string;
|
|
275
|
+
ruleWhen: string;
|
|
276
|
+
ruleThen: string;
|
|
277
|
+
removeRule: string;
|
|
278
|
+
opContains: string;
|
|
279
|
+
ruleValue: string;
|
|
205
280
|
}
|
|
206
281
|
export declare const weReportLocaleEn: WeReportLocale;
|
|
207
282
|
export declare const weReportLocaleTr: WeReportLocale;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WeReportLocale } from './we-report-locale';
|
|
2
|
+
/**
|
|
3
|
+
* Every bundled UI language by its ISO 639-1 code. Importing this pulls in all of them; import a
|
|
4
|
+
* single `weReportLocaleXx` instead to ship only one.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WE_REPORT_LOCALES: Record<string, WeReportLocale>;
|
|
7
|
+
/** The UI strings for a BCP 47 tag (`de-AT` → German); English when there is no translation. */
|
|
8
|
+
export declare function weReportLocaleFor(tag: string | undefined): WeReportLocale;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "we-report-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.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.2.0"
|
|
36
36
|
},
|
|
37
37
|
"sideEffects": false,
|
|
38
38
|
"module": "fesm2022/we-report-angular.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from './lib/we-report-locale';
|
|
2
|
+
export * from './lib/locales/de';
|
|
3
|
+
export * from './lib/locales/fr';
|
|
4
|
+
export * from './lib/locales/es';
|
|
5
|
+
export * from './lib/we-report-locales';
|
|
2
6
|
export * from './lib/we-report-config';
|
|
3
7
|
export * from './lib/we-report-icons';
|
|
4
8
|
export * from './lib/we-report-icon.pipe';
|