@festo-ui/angular 8.0.0 → 8.1.0-dev.563

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 +53 -13
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,24 +1,64 @@
1
- # Angular
1
+ # FESTO UI
2
2
 
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.1.0.
3
+ ## Angular Component Library
4
4
 
5
- ## Code scaffolding
5
+ ### Getting started
6
6
 
7
- Run `ng generate component component-name --project angular` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project angular`.
8
- > Note: Don't forget to add `--project angular` or else it will be added to the default project in your `angular.json` file.
7
+ Festo Angular comes as a NPM package.
8
+ Oh you don't know NPM? Then you must start a bit further at [Node.js](https://nodejs.org).
9
9
 
10
- ## Build
10
+ If you want to use the Festo Angular library with your Angular project then this command is the way to go:
11
11
 
12
- Run `ng build angular` to build the project. The build artifacts will be stored in the `dist/` directory.
12
+ `npm install @festo-ui/angular`
13
13
 
14
- ## Publishing
14
+ ### Peer dependencies
15
15
 
16
- After building your library with `ng build angular`, go to the dist folder `cd dist/angular` and run `npm publish`.
16
+ We have set the **@festo-ui/web-essentials** and the **@angular/cdk** as peer dependency. Make sure you have it installed:
17
17
 
18
- ## Running unit tests
18
+ `npm install @festo-ui/web-essentials`
19
19
 
20
- Run `ng test angular` to execute the unit tests via [Karma](https://karma-runner.github.io).
20
+ `npm install @angular/cdk`
21
21
 
22
- ## Further help
22
+ ### Required CSS
23
23
 
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
24
+ You should add the CSS files to your `angular.json` file to load the styles when your Angular projects get built.
25
+
26
+ Example:
27
+
28
+ ```json
29
+ {
30
+ "projects": {
31
+ "projectName": {
32
+ ...
33
+ "architect": {
34
+ "build": {
35
+ ...
36
+ "options": {
37
+ ...
38
+ "styles": [
39
+ ...
40
+ "node_modules/@festo-ui/web-essentials/dist/css/festo-web-essentials.min.css",
41
+ "node_modules/@festo-ui/angular/css/bundle.css"
42
+ ],
43
+ ...
44
+ ```
45
+
46
+ If you only want to load the styles for popovers or image gallery you can use following paths:
47
+ - `node_modules/@festo-ui/angular/css/popover.css`
48
+ - `node_modules/@festo-ui/angular/css/iamge-gallery.css`
49
+
50
+ ### Modules
51
+
52
+ After installation you have to import the **FestoAngularModule** and the **BrowserAnimationsModule** to your root module (called `app.module.ts` in the majority of projects). Have a look at the following example:
53
+
54
+ ```typescript
55
+ import { FestoAngularModule } from '@festo-ui/angular';
56
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
57
+
58
+ @NgModule({
59
+ declarations: [AppComponent],
60
+ imports: [BrowserModule, BrowserAnimationsModule, FormsModule, ReactiveFormsModule, FestoAngularModule, AppRoutingModule],
61
+ providers: []
62
+ })
63
+ export class AppModule {}
64
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/angular",
3
- "version": "8.0.0",
3
+ "version": "8.1.0-dev.563",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "copyright": "Copyright (c) 2025 Festo SE & Co. KG. All rights reserved.",
6
6
  "license": "apache-2.0",
@@ -41,4 +41,4 @@
41
41
  }
42
42
  },
43
43
  "sideEffects": false
44
- }
44
+ }