-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from bigBear713/dev
Dev
- Loading branch information
Showing
29 changed files
with
428 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/main.1d3785e1e902e0dbb19e.js → docs/main.af4599e89ec8f19b1b08.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# v12.1.0 | ||
## [Validators](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Validators "Validators") | ||
### [NbFormValidators.equal](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#nbformvalidatorsequal "NbFormValidators.equal") | ||
- feat: Add `immediately` param, the default is `true`; | ||
|
||
## [Services](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Services "Services") | ||
### [NbFormService](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#nbformservice "NbFormService") | ||
- feat: Add `updateEqualControlsValidities()` function so that you can more convenient to update the validities of the two controls which want to be equal; | ||
|
||
## [Components](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Components "Components") | ||
### [`<nb-control-err></nb-control-err>`](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#nb-control-errnb-control-err "<nb-control-err></nb-control-err>") | ||
- fix: When the control is in init status and it is dirty, the component will not display the error information; | ||
|
||
# v12.0.0 | ||
## [Module](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Module "Module") | ||
- feat: NbFormModule - provide some useful `component` | ||
- feat: NbFormTestingModule - provide the env to unit test; | ||
|
||
## [Validators](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Validators "Validators") | ||
- feat: NbFormValidators.arrLength - array length validator | ||
- feat: NbFormValidators.equal - values are equal validator | ||
- feat: NbFormValidators.fileSize - file size validator | ||
- feat: NbFormValidators.fileType - file type validator | ||
- feat: NbFormValidators.required - required validator | ||
- feat: NbFormValidators.whitespace - can all be whitespace validator | ||
|
||
## [Services](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Services "Services") | ||
- feat: NbFormService - a `service` which provide some common function about form | ||
|
||
## [Components](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Components "Components") | ||
- feat: `<nb-control-err></nb-control-err>` - the component is used to show error info of the control | ||
- feat: `<nb-field-item></nb-field-item>` - it has common layout and can show error info | ||
|
||
## [Tokens](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Tokens "Tokens") | ||
- feat: NB_CONTROL_COMMON_ERR_INFO_TOKEN - used to set common error info via DI, and the error information will be used in `<nb-control-err></nb-control-err>` | ||
|
||
## [Interfaces](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Interfaces "Interfaces") | ||
- feat: NbAbstractControl - abstract control type | ||
- feat: INbFormConfigs - form control configs | ||
- feat: INbControlConfig - control config | ||
- feat: INbControlErrInfo - error information of the control | ||
|
||
## [Enums](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.EN.md#Enums "Enums") | ||
- feat: NbControlErrTypeEnum - common error enum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# v12.1.0 | ||
## [Validators](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Validators "Validators") | ||
### [NbFormValidators.equal](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#nbformvalidatorsequal "NbFormValidators.equal") | ||
- feat: 增加`immediately`参数,默认为`true`; | ||
|
||
## [Services](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Services "Services") | ||
### [NbFormService](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#nbformservice "NbFormService") | ||
- feat: `updateEqualControlsValidities()`可以更便捷的更新两个期望相等的控件的有效性; | ||
|
||
## [Components](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Components "Components") | ||
### [`<nb-control-err></nb-control-err>`](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#nb-control-errnb-control-err "<nb-control-err></nb-control-err>") | ||
- fix: 控件初始时为`dirty`,组件不显示错误信息; | ||
|
||
# v12.0.0 | ||
## [Module](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Module "Module") | ||
- feat: NbFormModule - 提供可用的`component` | ||
- feat: NbFormTestingModule - 提供单元测试环境 | ||
|
||
## [Validators](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Validators "Validators") | ||
- feat: NbFormValidators.arrLength - 数组长度校验器 | ||
- feat: NbFormValidators.equal - 控件值是否相等校验器 | ||
- feat: NbFormValidators.fileSize - 文件大小校验器 | ||
- feat: NbFormValidators.fileType - 文件类型校验器 | ||
- feat: NbFormValidators.required - 必填校验器 | ||
- feat: NbFormValidators.whitespace - 是否允许都为空格校验器 | ||
|
||
## [Services](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Services "Services") | ||
- feat: NbFormService - 提供常用表单功能 | ||
|
||
## [Components](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Components "Components") | ||
- feat: `<nb-control-err></nb-control-err>` - 显示控件错误信息 | ||
- feat: `<nb-field-item></nb-field-item>` - 提供常见的字段布局,以及控件错误信息,常用于表单中 | ||
|
||
## [Tokens](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Tokens "Tokens") | ||
- feat: NB_CONTROL_COMMON_ERR_INFO_TOKEN - 通过DI设置常见的错误信息,便于在`<nb-control-err></nb-control-err>`中使用 | ||
|
||
## [Interfaces](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Interfaces "Interfaces") | ||
- feat: NbAbstractControl - 抽象控件类型 | ||
- feat: INbFormConfigs - 表单的控件配置 | ||
- feat: INbControlConfig - 控件配置 | ||
- feat: INbControlErrInfo - 控件错误信息 | ||
|
||
## [Enums](https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md#Enums "Enums") | ||
- feat: NbControlErrTypeEnum - 常用表单错误枚举 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.