we-report-angular 0.0.0-stage → 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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -2
  3. package/esm2022/lib/designer/bindable-input.component.mjs +97 -0
  4. package/esm2022/lib/designer/control-factory.mjs +45 -0
  5. package/esm2022/lib/designer/data-sources-dialog.component.mjs +266 -0
  6. package/esm2022/lib/designer/database-source-editor.component.mjs +412 -0
  7. package/esm2022/lib/designer/design-surface.component.mjs +600 -0
  8. package/esm2022/lib/designer/designer-fields.mjs +37 -0
  9. package/esm2022/lib/designer/designer-state.mjs +182 -0
  10. package/esm2022/lib/designer/property-panel.component.mjs +200 -0
  11. package/esm2022/lib/designer/we-report-designer.component.mjs +229 -0
  12. package/esm2022/lib/viewer/we-report-page.component.mjs +206 -0
  13. package/esm2022/lib/viewer/we-report-viewer.component.mjs +301 -0
  14. package/esm2022/lib/we-report-backend.service.mjs +17 -0
  15. package/esm2022/lib/we-report-config.mjs +26 -0
  16. package/esm2022/lib/we-report-fonts.service.mjs +75 -0
  17. package/esm2022/lib/we-report-icon.pipe.mjs +19 -0
  18. package/esm2022/lib/we-report-icons.mjs +29 -0
  19. package/esm2022/lib/we-report-locale.mjs +440 -0
  20. package/esm2022/public-api.mjs +14 -0
  21. package/esm2022/we-report-angular.mjs +5 -0
  22. package/fesm2022/we-report-angular.mjs +3120 -0
  23. package/fesm2022/we-report-angular.mjs.map +1 -0
  24. package/index.d.ts +5 -0
  25. package/lib/designer/bindable-input.component.d.ts +26 -0
  26. package/lib/designer/control-factory.d.ts +14 -0
  27. package/lib/designer/data-sources-dialog.component.d.ts +61 -0
  28. package/lib/designer/database-source-editor.component.d.ts +58 -0
  29. package/lib/designer/design-surface.component.d.ts +93 -0
  30. package/lib/designer/designer-fields.d.ts +16 -0
  31. package/lib/designer/designer-state.d.ts +51 -0
  32. package/lib/designer/property-panel.component.d.ts +51 -0
  33. package/lib/designer/we-report-designer.component.d.ts +70 -0
  34. package/lib/viewer/we-report-page.component.d.ts +19 -0
  35. package/lib/viewer/we-report-viewer.component.d.ts +56 -0
  36. package/lib/we-report-backend.service.d.ts +10 -0
  37. package/lib/we-report-config.d.ts +34 -0
  38. package/lib/we-report-fonts.service.d.ts +19 -0
  39. package/lib/we-report-icon.pipe.d.ts +12 -0
  40. package/lib/we-report-icons.d.ts +26 -0
  41. package/lib/we-report-locale.d.ts +208 -0
  42. package/package.json +48 -3
  43. package/public-api.d.ts +10 -0
  44. package/styles/we-report-theme.scss +106 -0
@@ -0,0 +1,26 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /** Inline SVG icons (24×24 viewBox, `currentColor`). Provide your own set to restyle. */
3
+ export interface WeReportIcons {
4
+ zoomIn: string;
5
+ zoomOut: string;
6
+ print: string;
7
+ download: string;
8
+ undo: string;
9
+ redo: string;
10
+ trash: string;
11
+ text: string;
12
+ field: string;
13
+ line: string;
14
+ rectangle: string;
15
+ ellipse: string;
16
+ image: string;
17
+ barcode: string;
18
+ qrcode: string;
19
+ pageInfo: string;
20
+ checkbox: string;
21
+ preview: string;
22
+ design: string;
23
+ database: string;
24
+ }
25
+ export declare const WE_REPORT_DEFAULT_ICONS: WeReportIcons;
26
+ export declare const WE_REPORT_ICONS: InjectionToken<WeReportIcons>;
@@ -0,0 +1,208 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { BandKind, ReportControlType } from 'we-report-core';
3
+ /** Every user-facing string of the designer and viewer. Add new keys to both locales below. */
4
+ export interface WeReportLocale {
5
+ designerLabel: string;
6
+ bandNames: Record<BandKind, string>;
7
+ controlNames: Record<ReportControlType, string>;
8
+ zoomIn: string;
9
+ zoomOut: string;
10
+ print: string;
11
+ downloadPdf: string;
12
+ downloadExcel: string;
13
+ /** `{0}` = number of pages. */
14
+ pageCount: string;
15
+ problems: string;
16
+ loading: string;
17
+ layoutError: string;
18
+ runReport: string;
19
+ dataLoadError: string;
20
+ design: string;
21
+ preview: string;
22
+ undo: string;
23
+ redo: string;
24
+ delete: string;
25
+ duplicate: string;
26
+ basicMode: string;
27
+ advancedMode: string;
28
+ toolbox: string;
29
+ toolboxHint: string;
30
+ fields: string;
31
+ fieldsHint: string;
32
+ parentFields: string;
33
+ noFields: string;
34
+ properties: string;
35
+ addBand: string;
36
+ removeBand: string;
37
+ groupBy: string;
38
+ newText: string;
39
+ showData: string;
40
+ groupLayout: string;
41
+ groupContent: string;
42
+ groupAppearance: string;
43
+ groupBehaviour: string;
44
+ groupPage: string;
45
+ groupData: string;
46
+ reportName: string;
47
+ paper: string;
48
+ orientation: string;
49
+ portrait: string;
50
+ landscape: string;
51
+ customSize: string;
52
+ width: string;
53
+ height: string;
54
+ margins: string;
55
+ marginTop: string;
56
+ marginRight: string;
57
+ marginBottom: string;
58
+ marginLeft: string;
59
+ left: string;
60
+ top: string;
61
+ content: string;
62
+ staticText: string;
63
+ fromData: string;
64
+ expression: string;
65
+ expressionHint: string;
66
+ format: string;
67
+ formatNone: string;
68
+ formatNumber0: string;
69
+ formatNumber2: string;
70
+ formatCurrency: string;
71
+ formatPercent: string;
72
+ formatDate: string;
73
+ formatDateTime: string;
74
+ font: string;
75
+ fontSize: string;
76
+ bold: string;
77
+ italic: string;
78
+ underline: string;
79
+ alignment: string;
80
+ alignLeft: string;
81
+ alignCenter: string;
82
+ alignRight: string;
83
+ verticalAlignment: string;
84
+ alignTop: string;
85
+ alignMiddle: string;
86
+ alignBottom: string;
87
+ textColor: string;
88
+ backgroundColor: string;
89
+ noColor: string;
90
+ border: string;
91
+ borderWidth: string;
92
+ borderColor: string;
93
+ padding: string;
94
+ canGrow: string;
95
+ canGrowHint: string;
96
+ visibleWhen: string;
97
+ visibleWhenHint: string;
98
+ symbology: string;
99
+ barcodeValue: string;
100
+ showText: string;
101
+ imageSource: string;
102
+ chooseImage: string;
103
+ fit: string;
104
+ fitContain: string;
105
+ fitCover: string;
106
+ fitStretch: string;
107
+ fitNone: string;
108
+ lineDirection: string;
109
+ horizontal: string;
110
+ vertical: string;
111
+ diagonalDown: string;
112
+ diagonalUp: string;
113
+ lineWidth: string;
114
+ color: string;
115
+ shape: string;
116
+ rectangle: string;
117
+ roundedRectangle: string;
118
+ ellipse: string;
119
+ cornerRadius: string;
120
+ pageInfo: string;
121
+ pageNumber: string;
122
+ pageTotal: string;
123
+ pageNofM: string;
124
+ printDate: string;
125
+ checked: string;
126
+ bandHeight: string;
127
+ sortGroups: string;
128
+ sortAsc: string;
129
+ sortDesc: string;
130
+ sortNone: string;
131
+ keepTogether: string;
132
+ keepTogetherHint: string;
133
+ repeatOnEveryPage: string;
134
+ pageBreakBefore: string;
135
+ pageBreakAfter: string;
136
+ dataRows: string;
137
+ dataRowsHint: string;
138
+ dataSources: string;
139
+ close: string;
140
+ rowsSource: string;
141
+ noSources: string;
142
+ webService: string;
143
+ parameters: string;
144
+ parametersHint: string;
145
+ parameterName: string;
146
+ parameterType: string;
147
+ parameterLabel: string;
148
+ defaultValue: string;
149
+ addParameter: string;
150
+ sourceName: string;
151
+ wholeData: string;
152
+ rowCount: string;
153
+ useForRows: string;
154
+ jsonData: string;
155
+ invalidJson: string;
156
+ csvData: string;
157
+ method: string;
158
+ url: string;
159
+ test: string;
160
+ testing: string;
161
+ testOk: string;
162
+ headers: string;
163
+ headerName: string;
164
+ headerValue: string;
165
+ addHeader: string;
166
+ requestBody: string;
167
+ secretWarning: string;
168
+ removeSource: string;
169
+ typeText: string;
170
+ typeNumber: string;
171
+ typeDate: string;
172
+ typeYesNo: string;
173
+ database: string;
174
+ backendAddress: string;
175
+ connect: string;
176
+ connected: string;
177
+ connection: string;
178
+ writeSql: string;
179
+ sqlHint: string;
180
+ table: string;
181
+ columns: string;
182
+ filters: string;
183
+ fixedValue: string;
184
+ addFilter: string;
185
+ sortBy: string;
186
+ maxRows: string;
187
+ opLike: string;
188
+ opIsEmpty: string;
189
+ opIsNotEmpty: string;
190
+ rowLimitReached: string;
191
+ viaBackend: string;
192
+ viaBackendHint: string;
193
+ autoDesign: string;
194
+ autoDesignHint: string;
195
+ newReportTitle: string;
196
+ totalLabel: string;
197
+ pageOfFormat: string;
198
+ issueOutsidePage: string;
199
+ issueFormulaError: string;
200
+ issueUnknownField: string;
201
+ issueEmptyFormula: string;
202
+ issueOverlap: string;
203
+ fixIt: string;
204
+ noProblems: string;
205
+ }
206
+ export declare const weReportLocaleEn: WeReportLocale;
207
+ export declare const weReportLocaleTr: WeReportLocale;
208
+ export declare const WE_REPORT_LOCALE: InjectionToken<WeReportLocale>;
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "we-report-angular",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
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
+ "license": "MIT",
6
+ "author": "Emre CIRIK",
7
+ "homepage": "https://github.com/emrecirik/we-report#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/emrecirik/we-report.git",
11
+ "directory": "projects/we-report"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/emrecirik/we-report/issues"
15
+ },
16
+ "keywords": [
17
+ "angular",
18
+ "report",
19
+ "report-designer",
20
+ "report-viewer",
21
+ "reporting",
22
+ "pdf",
23
+ "barcode",
24
+ "banded-report",
25
+ "crystal-reports-alternative",
26
+ "devexpress-alternative"
27
+ ],
28
+ "peerDependencies": {
29
+ "@angular/common": "^18.2.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
30
+ "@angular/core": "^18.2.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
31
+ "@angular/platform-browser": "^18.2.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0"
32
+ },
33
+ "dependencies": {
34
+ "tslib": "^2.3.0",
35
+ "we-report-core": "~0.1.0"
36
+ },
37
+ "sideEffects": false,
38
+ "module": "fesm2022/we-report-angular.mjs",
39
+ "typings": "index.d.ts",
40
+ "exports": {
41
+ "./package.json": {
42
+ "default": "./package.json"
43
+ },
44
+ ".": {
45
+ "types": "./index.d.ts",
46
+ "esm2022": "./esm2022/we-report-angular.mjs",
47
+ "esm": "./esm2022/we-report-angular.mjs",
48
+ "default": "./fesm2022/we-report-angular.mjs"
49
+ }
50
+ }
6
51
  }
@@ -0,0 +1,10 @@
1
+ export * from './lib/we-report-locale';
2
+ export * from './lib/we-report-config';
3
+ export * from './lib/we-report-icons';
4
+ export * from './lib/we-report-icon.pipe';
5
+ export * from './lib/we-report-fonts.service';
6
+ export * from './lib/viewer/we-report-viewer.component';
7
+ export * from './lib/viewer/we-report-page.component';
8
+ export * from './lib/designer/we-report-designer.component';
9
+ export * from './lib/designer/designer-state';
10
+ export * from './lib/we-report-backend.service';
@@ -0,0 +1,106 @@
1
+ // we-report designer/viewer theme. Every property must exist in all three blocks below.
2
+ // Override any of them in your app's styles to restyle the designer.
3
+ //
4
+ // The defaults follow Apple's Human Interface Guidelines: system type, quiet chrome that defers to
5
+ // the page, translucent toolbars, soft layered depth and one accent colour.
6
+
7
+ :root {
8
+ --we-report-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
9
+ --we-report-fg: #1d1d1f;
10
+ --we-report-muted-fg: rgba(60, 60, 67, 0.62);
11
+ --we-report-accent: #007aff;
12
+ --we-report-accent-fg: #ffffff;
13
+ --we-report-workspace-bg: #f2f2f7;
14
+ --we-report-toolbar-bg: rgba(250, 250, 252, 0.82);
15
+ --we-report-panel-bg: #fbfbfd;
16
+ --we-report-input-bg: rgba(118, 118, 128, 0.1);
17
+ --we-report-hover-bg: rgba(118, 118, 128, 0.12);
18
+ --we-report-segment-bg: rgba(118, 118, 128, 0.12);
19
+ --we-report-segment-on-bg: #ffffff;
20
+ --we-report-separator: rgba(60, 60, 67, 0.14);
21
+ --we-report-page-bg: #ffffff;
22
+ --we-report-page-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.08);
23
+ --we-report-popover-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.14), 0 24px 64px rgba(0, 0, 0, 0.12);
24
+ --we-report-margin-guide: rgba(0, 122, 255, 0.18);
25
+ --we-report-band-border: rgba(60, 60, 67, 0.14);
26
+ --we-report-band-label-bg: rgba(118, 118, 128, 0.1);
27
+ --we-report-band-label-fg: rgba(60, 60, 67, 0.7);
28
+ --we-report-control-outline: rgba(60, 60, 67, 0.22);
29
+ --we-report-selection: #007aff;
30
+ --we-report-selection-fill: rgba(0, 122, 255, 0.07);
31
+ --we-report-guide: #ff375f;
32
+ --we-report-warning-bg: rgba(255, 149, 0, 0.12);
33
+ --we-report-warning-fg: #b25000;
34
+ --we-report-backdrop: rgba(0, 0, 0, 0.22);
35
+ --we-report-focus-ring: 0 0 0 3px rgba(0, 122, 255, 0.35);
36
+ --we-report-radius: 12px;
37
+ --we-report-control-radius: 7px;
38
+ }
39
+
40
+ @media (prefers-color-scheme: dark) {
41
+ :root:not([data-theme='light']) {
42
+ --we-report-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
43
+ --we-report-fg: #f5f5f7;
44
+ --we-report-muted-fg: rgba(235, 235, 245, 0.6);
45
+ --we-report-accent: #0a84ff;
46
+ --we-report-accent-fg: #ffffff;
47
+ --we-report-workspace-bg: #111113;
48
+ --we-report-toolbar-bg: rgba(30, 30, 32, 0.78);
49
+ --we-report-panel-bg: #1c1c1e;
50
+ --we-report-input-bg: rgba(118, 118, 128, 0.24);
51
+ --we-report-hover-bg: rgba(118, 118, 128, 0.24);
52
+ --we-report-segment-bg: rgba(118, 118, 128, 0.24);
53
+ --we-report-segment-on-bg: #636366;
54
+ --we-report-separator: rgba(84, 84, 88, 0.6);
55
+ --we-report-page-bg: #ffffff;
56
+ --we-report-page-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
57
+ --we-report-popover-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5), 0 24px 64px rgba(0, 0, 0, 0.5);
58
+ --we-report-margin-guide: rgba(10, 132, 255, 0.28);
59
+ --we-report-band-border: rgba(60, 60, 67, 0.16);
60
+ --we-report-band-label-bg: rgba(118, 118, 128, 0.24);
61
+ --we-report-band-label-fg: rgba(235, 235, 245, 0.7);
62
+ --we-report-control-outline: rgba(60, 60, 67, 0.24);
63
+ --we-report-selection: #0a84ff;
64
+ --we-report-selection-fill: rgba(10, 132, 255, 0.1);
65
+ --we-report-guide: #ff375f;
66
+ --we-report-warning-bg: rgba(255, 159, 10, 0.18);
67
+ --we-report-warning-fg: #ffb340;
68
+ --we-report-backdrop: rgba(0, 0, 0, 0.45);
69
+ --we-report-focus-ring: 0 0 0 3px rgba(10, 132, 255, 0.5);
70
+ --we-report-radius: 12px;
71
+ --we-report-control-radius: 7px;
72
+ }
73
+ }
74
+
75
+ :root[data-theme='dark'] {
76
+ --we-report-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
77
+ --we-report-fg: #f5f5f7;
78
+ --we-report-muted-fg: rgba(235, 235, 245, 0.6);
79
+ --we-report-accent: #0a84ff;
80
+ --we-report-accent-fg: #ffffff;
81
+ --we-report-workspace-bg: #111113;
82
+ --we-report-toolbar-bg: rgba(30, 30, 32, 0.78);
83
+ --we-report-panel-bg: #1c1c1e;
84
+ --we-report-input-bg: rgba(118, 118, 128, 0.24);
85
+ --we-report-hover-bg: rgba(118, 118, 128, 0.24);
86
+ --we-report-segment-bg: rgba(118, 118, 128, 0.24);
87
+ --we-report-segment-on-bg: #636366;
88
+ --we-report-separator: rgba(84, 84, 88, 0.6);
89
+ --we-report-page-bg: #ffffff;
90
+ --we-report-page-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
91
+ --we-report-popover-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5), 0 24px 64px rgba(0, 0, 0, 0.5);
92
+ --we-report-margin-guide: rgba(10, 132, 255, 0.28);
93
+ --we-report-band-border: rgba(60, 60, 67, 0.16);
94
+ --we-report-band-label-bg: rgba(118, 118, 128, 0.24);
95
+ --we-report-band-label-fg: rgba(235, 235, 245, 0.7);
96
+ --we-report-control-outline: rgba(60, 60, 67, 0.24);
97
+ --we-report-selection: #0a84ff;
98
+ --we-report-selection-fill: rgba(10, 132, 255, 0.1);
99
+ --we-report-guide: #ff375f;
100
+ --we-report-warning-bg: rgba(255, 159, 10, 0.18);
101
+ --we-report-warning-fg: #ffb340;
102
+ --we-report-backdrop: rgba(0, 0, 0, 0.45);
103
+ --we-report-focus-ring: 0 0 0 3px rgba(10, 132, 255, 0.5);
104
+ --we-report-radius: 12px;
105
+ --we-report-control-radius: 7px;
106
+ }