@genesislcap/pbc-reporting-ui 1.0.4 → 1.0.6

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 (2) hide show
  1. package/README.md +69 -29
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,47 +1,87 @@
1
- # Web Client
1
+ # Reporting Micro front-end
2
2
 
3
- ## Frontend stack
3
+ The Reporting micro front-end enables your users to create report specifications, run them, or save them for later use.
4
4
 
5
- Genesis components are standards-based Web Components, making them compatible with almost any modern web framework.
6
- Our state-of-the-art design system and component set is built on top of
7
- [Microsoft FAST](https://www.fast.design/docs/introduction/).
5
+ From the GUI, users can:
8
6
 
9
- # Development
7
+ - select columns from existing data sources
8
+ - save the report with a name and retrieve it for future use
9
+ - apply ad hoc filtering to a report
10
+ - export the report results to .csv format
10
11
 
11
- 1. Install dependencies:
12
+ The micro front-end has a GUI that walks the user through generating a report.
12
13
 
13
- ```shell
14
- npm run bootstrap
15
- ```
14
+ ![Example showing creating a new report](./docs/img/foundation-reporting_create-report.png)
16
15
 
17
- 2. Start Web development server in watch mode:
16
+ Once the report is created it can be viewed in the GUI, and also exported to a `.csv` file.
18
17
 
19
- ```shell
20
- npm run dev
21
- ```
18
+ ![Example showing the list of all generated reports](./docs/img/foundation-reporting_view-report.png)
22
19
 
23
- 3. Build for production:
20
+ All the generated reports are stored for retrieval later. The report configuration is saved and the report updated when the user runs the report again.
21
+ ![Example showing the list of all generated reports](./docs/img/foundation-reporting_show-reports.png)
24
22
 
25
- ```shell
26
- npm run build
27
- ```
23
+ ## Set-up
28
24
 
29
- Preview production build:
25
+ ### Front-end configuration
30
26
 
31
- ```shell
32
- npm run serve
27
+ To enable this micro front-end in your application, follow the steps below.
28
+
29
+ 1. Add `@genesislcap/foundation-reporting` as a dependency in your **package.json** file. Whenever you change the dependencies of your project, run the `$ npm run bootstrap` command again. There is more information on this in the [package.json basics](../../../web/basics/package-json-basics/) page.
30
+
31
+ ```javascript
32
+ {
33
+ ...
34
+ "dependencies": {
35
+ "@genesislcap/foundation-reporting": "latest"
36
+ },
37
+ ...
38
+ }
33
39
  ```
34
40
 
35
- ## Clean
41
+ 2. Import the module and configure the route in your routes **config.ts** file.
36
42
 
37
- Remove distribution and node_modules directories:
43
+ **Synchronous example**
38
44
 
39
- ```shell
40
- npm run clean
41
- ```
45
+ ```javascript {9}
46
+ // Import
47
+ import {Reporting} from '@genesislcap/foundation-reporting';
42
48
 
43
- Baseline task combines `clean` and `bootstrap` tasks into a single command:
49
+ // Routes configure
50
+ public configure() {
51
+ ...
52
+ this.routes.map(
53
+ ...
54
+ {path: 'reporting', element: Reporting, title: 'Reporting', name: 'reporting'},
55
+ ...
56
+ );
57
+ }
58
+ ```
44
59
 
45
- ```shell
46
- npm run baseline
60
+ **Asynchronous example**
61
+
62
+ ```javascript {9}
63
+ // Import
64
+ import {Reporting} from '@genesislcap/foundation-reporting';
65
+
66
+ // Routes async configure
67
+ public async configure() {
68
+ ...
69
+ this.routes.map(
70
+ ...
71
+ {path: 'reporting', element: (await import('@genesislcap/foundation-reporting')).Reporting, title: 'Reporting', name: 'reporting'},
72
+ ...
73
+ );
74
+ }
47
75
  ```
76
+
77
+ :::info
78
+ If there are no reports in the database, you will see an error on the web page saying there are no reports to load - this is expected behaviour.
79
+ :::
80
+
81
+ ## License
82
+
83
+ Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
84
+
85
+ ### Licensed components
86
+ Genesis low-code platform
87
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-reporting-ui",
3
3
  "description": "Genesis PBC Reporting UI",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-reporting.d.ts",