we-report-angular 0.6.0 → 0.8.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 (34) hide show
  1. package/esm2022/lib/designer/bindable-input.component.mjs +12 -10
  2. package/esm2022/lib/designer/control-factory.mjs +27 -2
  3. package/esm2022/lib/designer/data-sources-dialog.component.mjs +99 -6
  4. package/esm2022/lib/designer/database-source-editor.component.mjs +3 -3
  5. package/esm2022/lib/designer/design-surface.component.mjs +270 -45
  6. package/esm2022/lib/designer/designer-fields.mjs +47 -13
  7. package/esm2022/lib/designer/designer-state.mjs +57 -3
  8. package/esm2022/lib/designer/expression-editor.component.mjs +11 -5
  9. package/esm2022/lib/designer/property-panel.component.mjs +117 -5
  10. package/esm2022/lib/designer/we-report-designer.component.mjs +224 -20
  11. package/esm2022/lib/locales/de.mjs +85 -2
  12. package/esm2022/lib/locales/es.mjs +85 -2
  13. package/esm2022/lib/locales/fr.mjs +85 -2
  14. package/esm2022/lib/viewer/page-canvas.mjs +151 -0
  15. package/esm2022/lib/viewer/we-report-page.component.mjs +5 -1
  16. package/esm2022/lib/viewer/we-report-viewer.component.mjs +293 -33
  17. package/esm2022/lib/we-report-icons.mjs +4 -1
  18. package/esm2022/lib/we-report-locale.mjs +169 -3
  19. package/fesm2022/we-report-angular.mjs +1713 -131
  20. package/fesm2022/we-report-angular.mjs.map +1 -1
  21. package/lib/designer/bindable-input.component.d.ts +3 -1
  22. package/lib/designer/data-sources-dialog.component.d.ts +24 -1
  23. package/lib/designer/database-source-editor.component.d.ts +1 -1
  24. package/lib/designer/design-surface.component.d.ts +22 -1
  25. package/lib/designer/designer-fields.d.ts +9 -1
  26. package/lib/designer/designer-state.d.ts +8 -0
  27. package/lib/designer/property-panel.component.d.ts +33 -3
  28. package/lib/designer/we-report-designer.component.d.ts +53 -3
  29. package/lib/viewer/page-canvas.d.ts +8 -0
  30. package/lib/viewer/we-report-viewer.component.d.ts +45 -2
  31. package/lib/we-report-icons.d.ts +3 -0
  32. package/lib/we-report-locale.d.ts +72 -0
  33. package/package.json +2 -2
  34. package/styles/we-report-theme.scss +6 -3
@@ -10,6 +10,13 @@ export interface WeReportLocale {
10
10
  print: string;
11
11
  downloadPdf: string;
12
12
  downloadExcel: string;
13
+ documentMap: string;
14
+ downloadPng: string;
15
+ pngAllPages: string;
16
+ printerOutput: string;
17
+ printerOutputHint: string;
18
+ printerZpl: string;
19
+ printerEscPos: string;
13
20
  /** `{0}` = number of pages. */
14
21
  pageCount: string;
15
22
  problems: string;
@@ -62,6 +69,9 @@ export interface WeReportLocale {
62
69
  removeBand: string;
63
70
  groupBy: string;
64
71
  newText: string;
72
+ /** Toolbox: a signature line. */
73
+ signature: string;
74
+ signatureCaption: string;
65
75
  showData: string;
66
76
  groupLayout: string;
67
77
  groupContent: string;
@@ -82,6 +92,9 @@ export interface WeReportLocale {
82
92
  marginRight: string;
83
93
  marginBottom: string;
84
94
  marginLeft: string;
95
+ pageColor: string;
96
+ mirrorMargins: string;
97
+ mirrorMarginsHint: string;
85
98
  left: string;
86
99
  top: string;
87
100
  content: string;
@@ -97,6 +110,8 @@ export interface WeReportLocale {
97
110
  formatPercent: string;
98
111
  formatDate: string;
99
112
  formatDateTime: string;
113
+ formatLongDate: string;
114
+ formatDayDate: string;
100
115
  font: string;
101
116
  fontSize: string;
102
117
  bold: string;
@@ -119,6 +134,8 @@ export interface WeReportLocale {
119
134
  padding: string;
120
135
  canGrow: string;
121
136
  canGrowHint: string;
137
+ richText: string;
138
+ richTextHint: string;
122
139
  visibleWhen: string;
123
140
  visibleWhenHint: string;
124
141
  symbology: string;
@@ -156,11 +173,29 @@ export interface WeReportLocale {
156
173
  sortNone: string;
157
174
  keepTogether: string;
158
175
  keepTogetherHint: string;
176
+ groupTop: string;
177
+ groupOrderBy: string;
178
+ groupOrderByHint: string;
179
+ largestFirst: string;
180
+ keepWithFirstRow: string;
181
+ printAtBottom: string;
182
+ printAtBottomHint: string;
183
+ printOnFirstPage: string;
184
+ printOnLastPage: string;
185
+ bookmark: string;
186
+ bookmarkHint: string;
187
+ alternateBackground: string;
188
+ bandVisible: string;
189
+ bandVisibleHint: string;
190
+ resetPageNumber: string;
191
+ resetPageNumberHint: string;
159
192
  repeatOnEveryPage: string;
160
193
  pageBreakBefore: string;
161
194
  pageBreakAfter: string;
162
195
  dataRows: string;
163
196
  dataRowsHint: string;
197
+ /** Shown under the main data source when the host app passes the rows. */
198
+ hostDataNote: string;
164
199
  dataSources: string;
165
200
  close: string;
166
201
  rowsSource: string;
@@ -172,6 +207,13 @@ export interface WeReportLocale {
172
207
  parameterType: string;
173
208
  parameterLabel: string;
174
209
  defaultValue: string;
210
+ calculatedFields: string;
211
+ calculatedFieldsHint: string;
212
+ calculatedFieldName: string;
213
+ addCalculatedField: string;
214
+ parameterChoices: string;
215
+ parameterChoicesFrom: string;
216
+ parameterNoList: string;
175
217
  addParameter: string;
176
218
  sourceName: string;
177
219
  wholeData: string;
@@ -216,6 +258,9 @@ export interface WeReportLocale {
216
258
  rowLimitReached: string;
217
259
  viaBackend: string;
218
260
  viaBackendHint: string;
261
+ paging: string;
262
+ pagingHint: string;
263
+ pageSize: string;
219
264
  autoDesign: string;
220
265
  autoDesignHint: string;
221
266
  newReportTitle: string;
@@ -227,6 +272,7 @@ export interface WeReportLocale {
227
272
  issueEmptyFormula: string;
228
273
  issueOverlap: string;
229
274
  issueOutsideColumn: string;
275
+ issueCheckDigit: string;
230
276
  fixIt: string;
231
277
  noProblems: string;
232
278
  chartType: string;
@@ -235,6 +281,12 @@ export interface WeReportLocale {
235
281
  chartLine: string;
236
282
  chartPie: string;
237
283
  chartDoughnut: string;
284
+ chartMax: string;
285
+ chartDataBar: string;
286
+ chartGauge: string;
287
+ chartSparkline: string;
288
+ chartRows: string;
289
+ chartRowsHint: string;
238
290
  chartCategory: string;
239
291
  chartValue: string;
240
292
  chartAggregate: string;
@@ -247,6 +299,24 @@ export interface WeReportLocale {
247
299
  showValues: string;
248
300
  showLegend: string;
249
301
  chartHint: string;
302
+ crosstabHint: string;
303
+ crosstabRows: string;
304
+ crosstabColumns: string;
305
+ crosstabValue: string;
306
+ crosstabTotals: string;
307
+ crosstabTitle: string;
308
+ subreportHint: string;
309
+ subreportEdit: string;
310
+ subreportLoad: string;
311
+ subreportLoadFailed: string;
312
+ subreportRows: string;
313
+ subreportRowsHint: string;
314
+ subreportFilter: string;
315
+ subreportFilterHint: string;
316
+ subreportParams: string;
317
+ subreportTitle: string;
318
+ subreportDone: string;
319
+ subreportPageHint: string;
250
320
  conditionalFormatting: string;
251
321
  watermark: string;
252
322
  firstPage: string;
@@ -279,6 +349,8 @@ export interface WeReportLocale {
279
349
  stretch: string;
280
350
  stretchHint: string;
281
351
  fitToText: string;
352
+ tidyUp: string;
353
+ tidyUpHint: string;
282
354
  collapseBand: string;
283
355
  expandBand: string;
284
356
  groupByThis: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "we-report-angular",
3
- "version": "0.6.0",
3
+ "version": "0.8.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.6.0"
35
+ "we-report-core": "~0.8.0"
36
36
  },
37
37
  "sideEffects": false,
38
38
  "module": "fesm2022/we-report-angular.mjs",
@@ -7,7 +7,7 @@
7
7
  :root {
8
8
  --we-report-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
9
9
  --we-report-fg: #1d1d1f;
10
- --we-report-muted-fg: rgba(60, 60, 67, 0.62);
10
+ --we-report-muted-fg: rgba(60, 60, 67, 0.75);
11
11
  --we-report-accent: #007aff;
12
12
  --we-report-accent-fg: #ffffff;
13
13
  --we-report-workspace-bg: #f2f2f7;
@@ -24,14 +24,14 @@
24
24
  --we-report-margin-guide: rgba(0, 122, 255, 0.18);
25
25
  --we-report-band-border: rgba(60, 60, 67, 0.14);
26
26
  --we-report-band-label-bg: rgba(118, 118, 128, 0.1);
27
- --we-report-band-label-fg: rgba(60, 60, 67, 0.7);
27
+ --we-report-band-label-fg: rgba(60, 60, 67, 0.85);
28
28
  --we-report-control-outline: rgba(60, 60, 67, 0.22);
29
29
  --we-report-selection: #007aff;
30
30
  --we-report-selection-fill: rgba(0, 122, 255, 0.07);
31
31
  --we-report-guide: #ff375f;
32
32
  --we-report-search-highlight: rgba(255, 204, 0, 0.45);
33
33
  --we-report-warning-bg: rgba(255, 149, 0, 0.12);
34
- --we-report-warning-fg: #b25000;
34
+ --we-report-warning-fg: #9a4400;
35
35
  --we-report-backdrop: rgba(0, 0, 0, 0.22);
36
36
  --we-report-focus-ring: 0 0 0 3px rgba(0, 122, 255, 0.35);
37
37
  --we-report-radius: 12px;
@@ -40,6 +40,8 @@
40
40
 
41
41
  @media (prefers-color-scheme: dark) {
42
42
  :root:not([data-theme='light']) {
43
+ // Scrollbars and form controls follow the dark palette.
44
+ color-scheme: dark;
43
45
  --we-report-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
44
46
  --we-report-fg: #f5f5f7;
45
47
  --we-report-muted-fg: rgba(235, 235, 245, 0.6);
@@ -75,6 +77,7 @@
75
77
  }
76
78
 
77
79
  :root[data-theme='dark'] {
80
+ color-scheme: dark;
78
81
  --we-report-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
79
82
  --we-report-fg: #f5f5f7;
80
83
  --we-report-muted-fg: rgba(235, 235, 245, 0.6);