Releases: bigBear713/nb-form
Releases · bigBear713/nb-form
18.0.0
17.0.0
v17.0.0
破坏性更新
- feat:
angular
升级到^17.0.0
; - feat:
@bigbear713/nb-common
升级到^17.0.0
;
Breaking Changes
- feat: Upgrade
angular
to^17.0.0
; - feat: Upgrade
@bigbear713/nb-common
to^17.0.0
;
16.0.0
破坏性更新
- feat:
angular
升级到^16.0.0
; - feat:
@bigbear713/nb-common
升级到^16.0.0
;
Components
- perf:
<nb-control-err></nb-control-err>
- 使用UnsubscribeService管理rxjs的订阅 - feat:
<nb-control-err></nb-control-err>
-control
属性添加必填校验:issue/17;
Breaking Changes
- feat: Upgrade
angular
to^16.0.0
; - feat: Upgrade
@bigbear713/nb-common
to^16.0.0
;
Components
- perf:
<nb-control-err></nb-control-err>
- Using UnsubscribeService to manage rxjs subscriptions - feat:
<nb-control-err></nb-control-err>
- Thecontrol
is required: issue/17;
v15.1.0
Components
- feat:
<nb-control-err></nb-control-err>
- 支持以standalone component
的方式引入 - feat:
<nb-field-item></nb-field-item>
- 支持以standalone component
的方式引入
Components
- feat:
<nb-control-err></nb-control-err>
- Support to be imported as astandalone component
- feat:
<nb-field-item></nb-field-item>
- Support to be imported as astandalone component
v15.0.0
破坏性更新
- feat:
angular
升级到^15.0.0
; - feat:
@bigbear713/nb-common
升级到^15.0.0
;
Tokens
- feat: 增加NB_CONTROL_COMMON_ERR_INFO,
NB_CONTROL_COMMON_ERR_INFO_TOKEN
标记为deprecated
;
Enums
- feat: NbControlErrType,
NbControlErrTypeEnum
标记为deprecated
;
Services
- refactor: 优化NbFormService的
getValidatorsFromControlConfig()
方法;
Breaking Changes
- feat: Upgrade
angular
to^15.0.0
; - feat: Upgrade
@bigbear713/nb-common
to^15.0.0
;
Tokens
- feat: Add NB_CONTROL_COMMON_ERR_INFO, mark
NB_CONTROL_COMMON_ERR_INFO_TOKEN
asdeprecated
;
Enums
- feat: Add NbControlErrType, mark
NbControlErrTypeEnum
asdeprecated
;
Services
- refactor: optimize the function
getValidatorsFromControlConfig()
of NbFormService;
v14.0.0
破坏性更新
- feat:
angular
升级到v14
;
Breaking Changes
- feat: Upgrade
angular
tov14
;
v13.0.0
破坏性更新
- feat:
angular
升级到v13
;
Breaking Changes
- feat: Upgrade
angular
tov13
;
v12.1.0
Validators
NbFormValidators.equal
- feat: 增加
immediately
参数,默认为true
;
Services
NbFormService
- feat:
updateEqualControlsValidities()
可以更便捷的更新两个期望相等的控件的有效性;
Components
<nb-control-err></nb-control-err>
- fix: 控件初始时为
dirty
,组件不显示错误信息;
Validators
NbFormValidators.equal
- feat: Add
immediately
param, the default istrue
;
Services
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
<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
- feat: NbFormModule - 提供可用的
component
- feat: NbFormTestingModule - 提供单元测试环境
Validators
- feat: NbFormValidators.arrLength - 数组长度校验器
- feat: NbFormValidators.equal - 控件值是否相等校验器
- feat: NbFormValidators.fileSize - 文件大小校验器
- feat: NbFormValidators.fileType - 文件类型校验器
- feat: NbFormValidators.required - 必填校验器
- feat: NbFormValidators.whitespace - 是否允许都为空格校验器
Services
- feat: NbFormService - 提供常用表单功能
Components
- feat:
<nb-control-err></nb-control-err>
- 显示控件错误信息 - feat:
<nb-field-item></nb-field-item>
- 提供常见的字段布局,以及控件错误信息,常用于表单中
Tokens
- feat: NB_CONTROL_COMMON_ERR_INFO_TOKEN - 通过DI设置常见的错误信息,便于在
<nb-control-err></nb-control-err>
中使用
Interfaces
- feat: NbAbstractControl - 抽象控件类型
- feat: INbFormConfigs - 表单的控件配置
- feat: INbControlConfig - 控件配置
- feat: INbControlErrInfo - 控件错误信息
Enums
- feat: NbControlErrTypeEnum - 常用表单错误枚举
Module
- feat: NbFormModule - provide some useful
component
- feat: NbFormTestingModule - provide the env to unit test;
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
- feat: NbFormService - a
service
which provide some common function about form
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
- 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
- feat: NbAbstractControl - abstract control type
- feat: INbFormConfigs - form control configs
- feat: INbControlConfig - control config
- feat: INbControlErrInfo - error information of the control
Enums
- feat: NbControlErrTypeEnum - common error enum