Update dependency ng-zorro-antd to v19 #2788
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.
This PR contains the following updates:
19.0.0
->19.0.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)
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
18.2.1 (2024-11-15)
Bug Fixes
a
tag problem withnull
orundefined
value if TemplateRef provided (#8864) (41f6609)nzSelectChange
event (#8872) (5ff9821)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)18.1.1 (2024-08-20)
Bug Fixes
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 #863118.0.1 (2024-06-27)
Bug Fixes
de_DE
(#8605) (8d75378)fa_IR
(#8597) (9c6e4bf)v18.0.1
Compare Source
Bug Fixes
de_DE
(#8605) (8d75378)fa_IR
(#8597) (9c6e4bf)v18.0.0
Compare Source
⚠ BREAKING CHANGES
left
|right
tostart
|end
(#8561) (3ad5674)No need to wrap Less functions provided by antd (including
colorEasing
,colorPalette
,tinycolor
) with ~`` anymore.Bug Fixes
Features
17.4.1 (2024-05-24)
Bug Fixes
Features
Performance Improvements
v17.4.1
Compare Source
Bug Fixes
Features
Performance Improvements
v17.4.0
Compare Source
Bug Fixes
Features
v17.3.0
Compare Source
Bug Fixes
Features
v17.2.0
Compare Source
Bug Fixes
Features
v17.1.0
Compare Source
Bug Fixes
Features
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.