Update dependency ng-zorro-antd to v20 #3387
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
20.0.0
->20.3.1
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
NG-ZORRO/ng-zorro-antd (ng-zorro-antd)
v20.3.1
Compare Source
Bug Fixes
NG0203
(#9418) (7fb58ae)v20.3.0
Compare Source
Features
nzArrows
(#9355) (1b9714b)provideNzI18n
to support factory function (#9393) (1371265)nzClear
(#9377) (cbecebf)nzVariant
(#9379) (d92568b)nzShape
(#9368) (ffce6c3)nzName
and keyboard interactions (#9373) (ebd8bdc)nzBeforeUpload
(#9402) (cece107)Bug Fixes
nzColor
, display incorrect (#9376) (e9abf92)NG0950
error (#9386) (e82fc01)less
as devDependencies if choosing custom theme in non-less project (#9412) (a18cffd)v20.2.1
Compare Source
Bug Fixes
v20.2.0
Compare Source
Features
nzOpen
to control visibility (#9339) (354c7cf)nzCollapsible
(#9349) (1ddbcaf)nzSize
(#9348) (b5c256d)nzSize
(#9346) (1f54536)nzIcon
support string type (#9302) (ce611e5)nzVertical
(#9359) (52322cd)NzTagColor
type (#9314) (1efd29e)Bug Fixes
v20.1.3
Compare Source
Bug Fixes
cs_CZ
(#9334) (93e486e)sk_SK
(#9335) (ddefc7f)nzNotFoundContent
(#9336) (366f8eb)v20.1.2
Compare Source
Bug Fixes
v20.1.1
Compare Source
Bug Fixes
NzBadgeStatusType
type (#9298) (91b1ad7)v20.1.0
Compare Source
Features
nzPlacement
(#9267) (9dc19f3)nzDanger
support to cancel button (#9270) (f94cb31)Bug Fixes
setAttribute
to setstyle
(#9292) (12d58bd)undefined
(#9269) (4c5666a)ToolTip
toTooltip
(#9285) (2ebef97)NzTooltipModule
migration (#9294) (add21f7)v20.0.0
Compare Source
Features
nzVariant
(#9131) (b342bb4)nzPopoverTitleContext
andnzPopoverContentContext
(#9126) (df3ead9)nzOnClear
callback (#9188) (e047ac2)loading
andfetchpriority
attributes (#7347) (ff8419f)nzOkButtonProps
andnzCancelButtonProps
(#9245) (22e2a9f)Bug Fixes
NzAlign
type (#9151) (b271c19)Code Refactoring
inject
pattern⚠ BREAKING CHANGES
ng-zorro-antd/core/polyfill
:cancelRequestAnimationFrame
tocancelAnimationFrame
reqAnimFrame
torequestAnimationFrame
NzTabsetComponent
toNzTabsComponent
,nz-tabset
selector tonz-tabs
, the original component and selector are marked as deprecatednzOkDisabled
andnzOkDanger
are marked as deprecated, usenzOkButtonProps
andnzCancelButtonProps
insteadRemove the following APIs which were marked as deprecated in the previous version:
ng-zorro-antd/button
NzButtonGroupComponent
ng-zorro-antd/core/form
NzFormPatchModule
ng-zorro-antd/checkbox
NzCheckBoxOptionInterface
ng-zorro-antd/input
NzInputGroupComponent#nzCompact
ng-zorro-antd/message
NzMessageModule
ng-zorro-antd/notification
NzNotificationModule
NzNotificationServiceModule
The
exportAs
of components are updated to followcamelCase
and start withnz
,exportAs
of internal components are removed. Changes can be seen as follow:calendar-footer
calendarFooter
date-helper
dateHelper
date-range-popup
dateRangePopup
date-table
dateTable
decade-helper
decadeHelper
decade-table
decadeTable
month-helper
monthHelper
month-table
monthTable
quarter-helper
quarterHelper
quarter-table
quarterTable
year-helper
yearHelper
year-table
yearTable
inner-popup
innerPopup
nz-color-block
NzColorBlock
nzColorBlock
nz-color-format
NzColorFormat
nzColorFormat
nz-color-picker
NzColorPicker
nzColorPicker
nz-model-close
NzModalCloseBuiltin
nzModalCloseBuiltin
nz-model-footer
NzModalFooterBuiltin
nzModalFooterBuiltin
nz-model-title
NzModalTitleBuiltin
nzModalTitleBuiltin
nz-tree-drop-indicator
NzTreeDropIndicator
nzTreeDropIndicator
nz-water-mark
NzWaterMark
nzWaterMark
nz-tabs
nzTabset
nzTabs
Deprecations
The following APIs are marked as deprecated in v20 and will be removed in the next major version.
Please refer to related documentation for better alternatives.
ng-zorro-antd/autocomplete
NZ_AUTOCOMPLETE_VALUE_ACCESSOR
getNzAutocompleteMissingPanelError
ng-zorro-antd/button
NzButtonGroupComponent
ng-zorro-antd/core/form
NzFormPatchModule
ng-zorro-antd/core/highlight
NzHighlightModule
ng-zorro-antd/checkbox
NzCheckBoxOptionInterface
ng-zorro-antd/input
NzInputGroupComponent#nzCompact
ng-zorro-antd/mention
NZ_MENTION_TRIGGER_ACCESSOR
ng-zorro-antd/message
NzMessageModule
ng-zorro-antd/notification
NzNotificationModule
NzNotificationServiceModule
ng-zorro-antd/tabs
NzTabsetComponent
v19.3.1
Compare Source
Bug Fixes
nzLinkRouter
not work for the first time load (#9130) (925a6a5)v19.3.0
Compare Source
Features
nzBlur
andnzFocus
output (#9098) (1b1a013)Shift
key (#9092) (b78b99f)Bug Fixes
es_ES
(#9127) (0aadfdf)nzLinkRouter
not work for the first time (#9118) (0f7f94d)Performance Improvements
v19.2.2
Compare Source
Bug Fixes
NG0600
error (#9106) (9f5b525)NG0600
error (#9105) (61b6886)nzOptions
(#9099) (7be2fe5)nzMaxMultipleCount
(#9080) (3714840)v19.2.1
Compare Source
Bug Fixes
v19.2.0
Compare Source
Features
Documentation
DragDropModule
Bug Fixes
nzMaxMultipleCount
in default mode (#9068) (dcf8a5d)nzMaxMultipleCount
reached (#9056) (d7031da)v19.1.0
Compare Source
Features
nzData
when content is a template (#9001) (5157470)overlayClassName
supports space delimited classes string (#8972) (3fcec91)nzPopoverOverlayClickable
to disable click on mask (#8878) (5898da7)Bug Fixes
Code Refactoring
isolatedModules
compiler option (#8970) (0d42aa7)Now feel free to use
isolatedModules
compiler option in your project.v19.0.2
Compare Source
Bug Fixes
NG0956
error (#8962) (c4d2f81)v19.0.1
Compare Source
Bug Fixes
nzFormat
(#8744) (1b7ab5a)zh_TW
(#8950) (9607e11)NG0600
error (#8955) (8d6135e)v19.0.0
Compare Source
Bug Fixes
nzBorderless
input (#8741) (22ce17c)vi_VN
(#8894) (f08ad1c)nzTreeNodePadding
not works in virtual scroll (#8920) (82b660a)Code Refactoring
ngClass
andngStyle
(#8895) (c3ab3ba)FADE_CLASS_NAME_MAP
andIMAGE_PREVIEW_MASK_CLASS_NAME
(#8912) (65223d9)CheckBox
toCheckbox
(#8934) (c76433d5)Features
nzPlacement
(#8935) (6fbd22c)nz-checkbox-group
component (#8932) (489e0de)nzVariant
option (#8827) (2c63c87)nz-icon
tag selector (#8778) (1406241)nzTriggerSubMenuAction
to support click trigger for submenu (#8461) (860df87)nzStatusRender
to support customize state rendering (#8714) (6f36d75)nzSortDirections
to global config (#6613) (#8721) (eb1fdc5)nzOneWay
to support one way style (#8717) (99fd4de)BREAKING CHANGES
All
nzClass
/nzStyle
input properties no longer support the following features:Set()
: use arrays instead@WithConfig
to standard decorator. If you're using@WithConfig
in your library, please turnexperimentalDecorators
off intsconfig.json
[nz-icon]
tonz-icon
tag. If you're using[nz-icon]
selector in stylesheet to select icon inside zorro component, please usenz-icon
insteadinput-number: Redesign the input-number so that it will be much simpler and more flexible.
Now you can use affixes or addons as follows, no need for
ng-template
andnz-input-number-group
:The old input-number component is marked as deprecated, and its entrypoint had changed to
ng-zorro-antd/input-number-legacy
.NzInputNumberComponent
is nowNzInputNumberLegacyComponent
, andNzInputNumberModule
is nowNzInputNumberLegacyModule
.Don't worry,
ng update ng-zorro-antd
will automatically do the migration.cascader: Cancel support for writing value with
NzCascaderOption[]
type.In the past, the cascader component kept a trick that if you wrote value with
NzCascaderOption[]
type, it extracted value by mapping each item to its value property, for example:then the value of cascader would be
'ng-zorro-antd'
.It's strange that the input and output values don't match when we haven't changed the values, and it's hard to maintain. We expect that the value passed in should be the value in the list of options.
In v19, this trick is removed and if you're already using this trick in your code, please consider the add a
map
function to pass the actual value.checkbox Redesign the checkbox group component.
NzCheckBoxOptionInterface['checked]
field. By the way,NzCheckBoxOptionInterface
is marked as deprecated, useNzCheckboxOption
insteadnz-checkbox-group
: Type ofngModel
is changed fromNzCheckBoxOptionInterface[]
toNzCheckboxOption['value'][]
card: Remove redundant
nzBorderless
input property. UsenzBordered
instead.image: Remove deprecated
FADE_CLASS_NAME_MAP
andIMAGE_PREVIEW_MASK_CLASS_NAME
pipes: Remove deprecated
NzSafeNullPipe
segmented: Redesign the segmented component.
ngModel
is changed fromindex
to option's valuenzValueChange
fromnumber
to option's value type (string | number
)nzLabelTemplate
, usenz-segmented-item
directive insteadspace: Rename
exportAs
ofNzSpaceComponent
fromNzSpace
to standardnzSpace
transfer: Rename
nzTreeCheckBoxChange
tonzTreeCheckboxChange
tree,tree-select: Rename
nzCheckBoxChange
tonzCheckboxChange
Deprecations
The following APIs are marked as deprecated in v19 and will be removed in the next major version.
Please refer to related documentation for better alternatives.
ng-zorro-antd/button
NzButtonGroupComponent
ng-zorro-antd/core/form
NzFormPatchModule
ng-zorro-antd/checkbox
NzCheckboxWrapperComponent
ng-zorro-antd/input
NzInputGroupComponent#nzCompact
ng-zorro-antd/input-number-legacy
*
ng-zorro-antd/message
NzMessageModule
ng-zorro-antd/notification
NzNotificationModule
NzNotificationServiceModule
v18.2.1
Compare Source
Bug Fixes
a
tag problem withnull
orundefined
value if TemplateRef provided (#8864) (41f6609)nzSelectChange
event (#8872) (5ff9821)v18.2.0
Compare Source
Bug Fixes
nb_NO
(#8712) (8c9bcd1)hu_HU
(#8769) (9e21ae8)nzVisibleChange
when close on navigation (#8850) (29827df)nzMask
is false (#8798) (f2f04fe)Features
destroyInactiveTabPane
(#8845) (0de6d62)v18.1.1
Compare Source
Bug Fixes
v18.1.0
Compare Source
Bug Fixes
compositionstart
event (#8641) (17b0ea3)pt_BR
(#7790) (6fc1c78)fr_BE
,fr_CA
,fr_FR
andlv_LV
(#8614) (9b69410)RouterLink
in template (#8621) (032a0c2)Features
nzRouteFn
(#6313) (6d805c4)en_AU
(#7919) (c4e6c8d)provideNzIcons
andprovideNzIconsPatch
API (#8650) (b22672d)nzSummary
(#8639) (20bb5b2)nzFixed
fornzSummary
(#8642) (bef12e6)nzNotFoundContent
(#8638) (13e8a45), closes #8631[
v18.0.1
](https://redirect.github.com/NG-ZORRO/ng-zorro-Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled because a matching PR was automerged previously.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.