ngx-nz-formly 0.0.4 → 0.0.5

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 +31 -20
  2. package/package.json +26 -1
package/README.md CHANGED
@@ -2,23 +2,34 @@
2
2
 
3
3
  This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.0.
4
4
 
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project NgxNzFormly` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project NgxNzFormly`.
8
- > Note: Don't forget to add `--project NgxNzFormly` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build NgxNzFormly` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build NgxNzFormly`, go to the dist folder `cd dist/ngx-nz-formly` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test NgxNzFormly` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
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.
5
+ ## Installation
6
+
7
+ Angular version `16.x.x`
8
+ ```bash
9
+ $ npm install --save ngx-nz-formly
10
+ ```
11
+
12
+ ## Quick Start
13
+
14
+ Adding ``ngx-nz-formly`` to your application is super easy. All you need is to add the following modules to imports in ``app.module.ts``.
15
+ ```
16
+ @NgModule({
17
+ declarations: [...],
18
+ imports: [
19
+ ...,
20
+ OverlayModule,
21
+ HttpClientModule,
22
+ BrowserAnimationsModule,
23
+ NgxMaskModule.forRoot({}),
24
+ FormlyModule.forRoot(NzFormlyForRoot),
25
+ ],
26
+ providers: [
27
+ ...,
28
+ { provide: NZ_I18N, useValue: en_US }
29
+ ],
30
+ })
31
+ export class AppModule {}
32
+ ```
33
+ As an explanation, ``HttpClientModule`` and ``providers`` relates to Ant design setup.
34
+ In order to use special masks on inputs, you need to add ``NgxMaskModule``, too. At last, we have ``OverlayModule``, ``BrowserAnimationsModule`` and ``FormlyModule`` to complete the setup.
35
+ Finally, you need ``NzFormlyForRoot`` config to FormlyModule for root to be able to have your formly with Ant Design.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "ngx-nz-formly",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
+ "description": "awesome ngx nz formly",
4
5
  "peerDependencies": {
5
6
  "@angular/common": "^16.2.0",
6
7
  "@angular/core": "^16.2.0",
@@ -11,8 +12,32 @@
11
12
  "ngx-mask": "^13.1.3",
12
13
  "rxjs": "~7.5.0"
13
14
  },
15
+ "keywords": [
16
+ "nz",
17
+ "ng",
18
+ "ng2",
19
+ "zorro",
20
+ "formly",
21
+ "angular",
22
+ "nz-formly",
23
+ "ng2-nz-formly",
24
+ "ngx-nz-formly",
25
+ "angular-formly",
26
+ "ant-design-formly",
27
+ "ng2formly"
28
+ ],
29
+ "author": "sajjadbayat",
14
30
  "dependencies": {
15
31
  "tslib": "^2.3.0"
16
32
  },
33
+ "typings": "./src/public-api.ts",
34
+ "exports": {
35
+ "./package.json": {
36
+ "default": "./package.json"
37
+ },
38
+ ".": {
39
+ "types": "./src/public-api.ts"
40
+ }
41
+ },
17
42
  "sideEffects": false
18
43
  }