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.
- package/README.md +31 -20
- 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
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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.
|
|
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
|
}
|