You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***avatar:** calculate size at the right time ([#8754](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8754)) ([3a5ba37](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3a5ba37de6553c5973ac1741a250dff957ca7ec5))
***carousel:** carousel not working correctly in rtl mode ([#8770](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8770)) ([0202a19](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0202a191b3259e3dc454272b53feb3687a32cf0a))
10
+
***cascader:** correct menu display level ([#8866](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8866)) ([5fec53e](https://github.com/NG-ZORRO/ng-zorro-antd/commit/5fec53e597d50a26a1083bb1e726af885ba807ae))
11
+
***drawer:** should clear previously focused element ([#8893](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8893)) ([4498af0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4498af0f1a8c700099e82f4027bec30086f6d29a))
12
+
***i18n:** add missing translations to `vi_VN` ([#8894](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8894)) ([f08ad1c](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f08ad1cb0728d19655c8143658e6a44f8843cb4a))
13
+
14
+
15
+
### Code Refactoring
16
+
17
+
* cancel support for HTML string rendering ([#8831](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8831)) ([5fae01a](https://github.com/NG-ZORRO/ng-zorro-antd/commit/5fae01ad4120841390f7ebb6267a043774ea2266))
18
+
* remove `ngClass` and `ngStyle` ([#8895](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8895)) ([c3ab3ba](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c3ab3ba6ad50dc4a8f23b43872b3f235ee316f4c))
19
+
***image:** remove deprecated `FADE_CLASS_NAME_MAP` and `IMAGE_PREVIEW_MASK_CLASS_NAME` ([#8912](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8912)) ([65223d9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/65223d9a595e78f8c73347c5d1b12a807389c434))
20
+
21
+
22
+
### Features
23
+
24
+
***cascader:** support multiple selection ([#8903](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8903)) ([e5dfb49](https://github.com/NG-ZORRO/ng-zorro-antd/commit/e5dfb495dc4f9e5493e425aeab3802a13a0f5e28))
***icon:** support `nz-icon` tag selector ([#8778](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8778)) ([1406241](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1406241f2e636bb3bf11515b0ad68cbe0535d5e1))
28
+
***image:** close image preview when escape key pressed ([#8809](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8809)) ([d587615](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d587615c7dd8d911af06551181f1bffb6eb67149))
29
+
***input:** support one time password (OTP) ([#8715](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8715)) ([cdbaf4d](https://github.com/NG-ZORRO/ng-zorro-antd/commit/cdbaf4de291f380cfcfdf6788d24da3e344175a9))
30
+
***menu:** add `nzTriggerSubMenuAction` to support click trigger for submenu ([#8461](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8461)) ([860df87](https://github.com/NG-ZORRO/ng-zorro-antd/commit/860df87a1be62f462ac3ea136d53948ccd69213a))
31
+
***qrcode:** add `nzStatusRender` to support customize state rendering ([#8714](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8714)) ([6f36d75](https://github.com/NG-ZORRO/ng-zorro-antd/commit/6f36d75741e301bc3e7634a93c106c48a02c0a1b))
32
+
***segmented:** redesign the segmented component ([#8753](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8753)) ([4dc866c](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4dc866cb2fcc7afb4cc309f433c216d1b7cba2e1))
33
+
***space:** add space compact component ([#8755](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8755)) ([b9c511d](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b9c511db0b1b28521e23148a6fce5b1f169f99a2))
34
+
***table:** add `nzSortDirections` to global config ([#6613](https://github.com/NG-ZORRO/ng-zorro-antd/issues/6613)) ([#8721](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8721)) ([eb1fdc5](https://github.com/NG-ZORRO/ng-zorro-antd/commit/eb1fdc5037d9122a237e317e5b93857deb51e5d5))
35
+
***transfer:** add `nzOneWay` to support one way style ([#8717](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8717)) ([99fd4de](https://github.com/NG-ZORRO/ng-zorro-antd/commit/99fd4de95b2a5a44a2837af38d31ddcabf0a60bf))
36
+
***input-number:** redesign the input-number ([#8901](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8901)) ([df55d88](https://github.com/NG-ZORRO/ng-zorro-antd/commit/df55d8882c9f36bc6a0cd8a4d752e03070658ff7))
37
+
***schematics:** add v19 ng update migration ([#8911](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8911)) ([1a20de2](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1a20de223bc6e214b54f741f42ed8260611b9b67))
38
+
39
+
40
+
### BREAKING CHANGES
41
+
42
+
***All**
43
+
*`nzClass` / `nzStyle` input properties no longer support the following features:
44
+
-`Set()`: use arrays instead
45
+
- Keys which multiple styles/classes separated with keys: split a key with spaces into multiple keys
46
+
* Cancel support for HTML string rendering
47
+
* Migrate `@WithConfig` to standard decorator. If you're using `@WithConfig` in your library, please turn `experimentalDecorators` off in `tsconfig.json`
48
+
49
+
***input-number:** Redesign the input-number so that it will be much simpler and more flexible.
50
+
51
+
Now you can use affixes or addons as follows, no need for `ng-template` and `nz-input-number-group`:
52
+
53
+
```html
54
+
<!-- Custom handler icons -->
55
+
<nz-input-number>
56
+
<nz-iconnzInputNumberUpIcon />
57
+
<nz-iconnzInputNumberDownIcon />
58
+
</nz-input-number>
59
+
60
+
<!-- With affixes -->
61
+
<nz-input-number>
62
+
<spannzInputPrefix>Prefix</span>
63
+
<spannzInputSuffix>Suffix</span>
64
+
</nz-input-number>
65
+
66
+
<!-- With addons -->
67
+
<nz-input-number>
68
+
<spannzInputAddonBefore>Before</span>
69
+
<spannzInputAddonAfter>After</span>
70
+
</nz-input-number>
71
+
```
72
+
73
+
The old input-number component is marked as **deprecated**, and its entrypoint had changed to `ng-zorro-antd/input-number-legacy`.
74
+
`NzInputNumberComponent` is now `NzInputNumberLegacyComponent`, and `NzInputNumberModule` is now `NzInputNumberLegacyModule`.
75
+
76
+
Don't worry, `ng update ng-zorro-antd` will automatically do the migration.
77
+
78
+
***cascader:** Cancel support for writing value with `NzCascaderOption[]` type.
79
+
80
+
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:
value = [{ label: 'NG ZORRO', value: 'ng-zorro-antd' }]
88
+
}
89
+
```
90
+
then the value of cascader would be `'ng-zorro-antd'`.
91
+
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.
92
+
93
+
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.
94
+
95
+
***card:** Remove redundant `nzBorderless` input property. Use `nzBordered` instead.
96
+
***image:** Remove deprecated `FADE_CLASS_NAME_MAP` and `IMAGE_PREVIEW_MASK_CLASS_NAME`
97
+
***pipes:** Remove deprecated `NzSafeNullPipe`
98
+
***segmented:** Redesign the segmented component.
99
+
- Value of `ngModel` is changed from `index` to option's value
100
+
- Change emission type of `nzValueChange` from `number` to option's value type (`string | number`)
101
+
- Remove `nzLabelTemplate`, use `nz-segmented-item` directive instead
102
+
***space:** Rename `exportAs` of `NzSpaceComponent` from `NzSpace` to standard `nzSpace`
103
+
104
+
105
+
### Deprecations
106
+
107
+
The following APIs are marked as **deprecated** in v19 and will be removed in the next major version.
108
+
Please refer to related documentation for better alternatives.
***avatar:** calculate size at the right time ([#8754](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8754)) ([3a5ba37](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3a5ba37de6553c5973ac1741a250dff957ca7ec5))
***carousel:** carousel not working correctly in rtl mode ([#8770](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8770)) ([0202a19](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0202a191b3259e3dc454272b53feb3687a32cf0a))
26
+
***cascader:** correct menu display level ([#8866](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8866)) ([5fec53e](https://github.com/NG-ZORRO/ng-zorro-antd/commit/5fec53e597d50a26a1083bb1e726af885ba807ae))
27
+
***drawer:** should clear previously focused element ([#8893](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8893)) ([4498af0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4498af0f1a8c700099e82f4027bec30086f6d29a))
28
+
***i18n:** add missing translations to `vi_VN` ([#8894](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8894)) ([f08ad1c](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f08ad1cb0728d19655c8143658e6a44f8843cb4a))
29
+
30
+
31
+
### Code Refactoring
32
+
33
+
* cancel support for HTML string rendering ([#8831](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8831)) ([5fae01a](https://github.com/NG-ZORRO/ng-zorro-antd/commit/5fae01ad4120841390f7ebb6267a043774ea2266))
34
+
* remove `ngClass` and `ngStyle` ([#8895](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8895)) ([c3ab3ba](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c3ab3ba6ad50dc4a8f23b43872b3f235ee316f4c))
35
+
***image:** remove deprecated `FADE_CLASS_NAME_MAP` and `IMAGE_PREVIEW_MASK_CLASS_NAME` ([#8912](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8912)) ([65223d9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/65223d9a595e78f8c73347c5d1b12a807389c434))
36
+
37
+
38
+
### Features
39
+
40
+
***cascader:** support multiple selection ([#8903](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8903)) ([e5dfb49](https://github.com/NG-ZORRO/ng-zorro-antd/commit/e5dfb495dc4f9e5493e425aeab3802a13a0f5e28))
***icon:** support `nz-icon` tag selector ([#8778](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8778)) ([1406241](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1406241f2e636bb3bf11515b0ad68cbe0535d5e1))
44
+
***image:** close image preview when escape key pressed ([#8809](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8809)) ([d587615](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d587615c7dd8d911af06551181f1bffb6eb67149))
45
+
***input:** support one time password (OTP) ([#8715](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8715)) ([cdbaf4d](https://github.com/NG-ZORRO/ng-zorro-antd/commit/cdbaf4de291f380cfcfdf6788d24da3e344175a9))
46
+
***menu:** add `nzTriggerSubMenuAction` to support click trigger for submenu ([#8461](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8461)) ([860df87](https://github.com/NG-ZORRO/ng-zorro-antd/commit/860df87a1be62f462ac3ea136d53948ccd69213a))
47
+
***qrcode:** add `nzStatusRender` to support customize state rendering ([#8714](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8714)) ([6f36d75](https://github.com/NG-ZORRO/ng-zorro-antd/commit/6f36d75741e301bc3e7634a93c106c48a02c0a1b))
48
+
***segmented:** redesign the segmented component ([#8753](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8753)) ([4dc866c](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4dc866cb2fcc7afb4cc309f433c216d1b7cba2e1))
49
+
***space:** add space compact component ([#8755](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8755)) ([b9c511d](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b9c511db0b1b28521e23148a6fce5b1f169f99a2))
50
+
***table:** add `nzSortDirections` to global config ([#6613](https://github.com/NG-ZORRO/ng-zorro-antd/issues/6613)) ([#8721](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8721)) ([eb1fdc5](https://github.com/NG-ZORRO/ng-zorro-antd/commit/eb1fdc5037d9122a237e317e5b93857deb51e5d5))
51
+
***transfer:** add `nzOneWay` to support one way style ([#8717](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8717)) ([99fd4de](https://github.com/NG-ZORRO/ng-zorro-antd/commit/99fd4de95b2a5a44a2837af38d31ddcabf0a60bf))
52
+
***input-number:** redesign the input-number ([#8901](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8901)) ([df55d88](https://github.com/NG-ZORRO/ng-zorro-antd/commit/df55d8882c9f36bc6a0cd8a4d752e03070658ff7))
53
+
***schematics:** add v19 ng update migration ([#8911](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8911)) ([1a20de2](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1a20de223bc6e214b54f741f42ed8260611b9b67))
54
+
55
+
56
+
### BREAKING CHANGES
57
+
58
+
***All**
59
+
*`nzClass` / `nzStyle` input properties no longer support the following features:
60
+
-`Set()`: use arrays instead
61
+
- Keys which multiple styles/classes separated with keys: split a key with spaces into multiple keys
62
+
* Cancel support for HTML string rendering
63
+
* Migrate `@WithConfig` to standard decorator. If you're using `@WithConfig` in your library, please turn `experimentalDecorators` off in `tsconfig.json`
64
+
65
+
***input-number:** Redesign the input-number so that it will be much simpler and more flexible.
66
+
67
+
Now you can use affixes or addons as follows, no need for `ng-template` and `nz-input-number-group`:
68
+
69
+
```html
70
+
<!-- Custom handler icons -->
71
+
<nz-input-number>
72
+
<nz-iconnzInputNumberUpIcon />
73
+
<nz-iconnzInputNumberDownIcon />
74
+
</nz-input-number>
75
+
76
+
<!-- With affixes -->
77
+
<nz-input-number>
78
+
<spannzInputPrefix>Prefix</span>
79
+
<spannzInputSuffix>Suffix</span>
80
+
</nz-input-number>
81
+
82
+
<!-- With addons -->
83
+
<nz-input-number>
84
+
<spannzInputAddonBefore>Before</span>
85
+
<spannzInputAddonAfter>After</span>
86
+
</nz-input-number>
87
+
```
88
+
89
+
The old input-number component is marked as **deprecated**, and its entrypoint had changed to `ng-zorro-antd/input-number-legacy`.
90
+
`NzInputNumberComponent` is now `NzInputNumberLegacyComponent`, and `NzInputNumberModule` is now `NzInputNumberLegacyModule`.
91
+
92
+
Don't worry, `ng update ng-zorro-antd` will automatically do the migration.
93
+
94
+
***cascader:** Cancel support for writing value with `NzCascaderOption[]` type.
95
+
96
+
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:
value = [{ label: 'NG ZORRO', value: 'ng-zorro-antd' }]
104
+
}
105
+
```
106
+
then the value of cascader would be `'ng-zorro-antd'`.
107
+
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.
108
+
109
+
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.
110
+
111
+
***card:** Remove redundant `nzBorderless` input property. Use `nzBordered` instead.
112
+
***image:** Remove deprecated `FADE_CLASS_NAME_MAP` and `IMAGE_PREVIEW_MASK_CLASS_NAME`
113
+
***pipes:** Remove deprecated `NzSafeNullPipe`
114
+
***segmented:** Redesign the segmented component.
115
+
- Value of `ngModel` is changed from `index` to option's value
116
+
- Change emission type of `nzValueChange` from `number` to option's value type (`string | number`)
117
+
- Remove `nzLabelTemplate`, use `nz-segmented-item` directive instead
118
+
***space:** Rename `exportAs` of `NzSpaceComponent` from `NzSpace` to standard `nzSpace`
119
+
120
+
121
+
### Deprecations
122
+
123
+
The following APIs are marked as **deprecated** in v19 and will be removed in the next major version.
124
+
Please refer to related documentation for better alternatives.
0 commit comments