Skip to content

Commit

Permalink
Merge branch 'NG-ZORRO:master' into fix/tree-select-search-slow-in-vi…
Browse files Browse the repository at this point in the history
…rtual-mode
  • Loading branch information
jpoyard committed Jul 5, 2022
2 parents 9b47830 + ea1138b commit 13e6ff1
Show file tree
Hide file tree
Showing 293 changed files with 6,883 additions and 1,194 deletions.
45 changes: 23 additions & 22 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -19,24 +19,25 @@ components/typography/** @hsuanxyz
components/space/** @hsuanxyz
components/resizable/** @hsuanxyz
components/tabs/** @hsuanxyz
components/breadcrumb/** @wendellhu95
components/empty/** @wendellhu95
components/carousel/** @wendellhu95
components/cascader/** @wendellhu95
components/descriptions/** @wendellhu95
components/icon/** @wendellhu95
components/message/** @wendellhu95
components/notification/** @wendellhu95
components/popconfirm/** @wendellhu95
components/popover/** @wendellhu95
components/progress/** @wendellhu95
components/rate/** @wendellhu95
components/result/** @wendellhu95
components/slider/** @wendellhu95
components/statistic/** @wendellhu95
components/timeline/** @wendellhu95
components/tooltip/** @wendellhu95
components/code-editor/** @wendellhu95
components/breadcrumb/** @hullis
components/empty/** @hullis
components/carousel/** @hullis
components/cascader/** @hullis
components/descriptions/** @hullis
components/icon/** @hullis
components/message/** @hullis
components/notification/** @hullis
components/popconfirm/** @hullis
components/popover/** @hullis
components/progress/** @hullis
components/rate/** @hullis
components/result/** @hullis
components/slider/** @hullis
components/statistic/** @hullis
components/timeline/** @hullis
components/tooltip/** @hullis
components/code-editor/** @hullis
components/segmented/** @hullis
components/calendar/** @wenqi73
components/date-picker/** @wenqi73
components/skeleton/** @wenqi73
Expand Down Expand Up @@ -68,11 +69,11 @@ components/pipes/** @chensimeng
components/image/** @stygian-desolator

# The `components/core/*` owners
components/core/config/** @wendellhu95
components/core/element-patch/** @wendellhu95
components/core/config/** @hullis
components/core/element-patch/** @hullis
components/core/highlight/** @hsuanxyz
components/core/resize-observers/** @wendellhu95
components/core/logger/** @wendellhu95
components/core/resize-observers/** @hullis
components/core/logger/** @hullis
components/core/no-animation/** @hsuanxyz
components/core/outlet/** @vthinkxie
components/core/time/** @wenqi73
Expand Down
2 changes: 1 addition & 1 deletion .github/auto_assign.yml
Expand Up @@ -7,7 +7,7 @@ addAssignees: true
# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- vthinkxie
- wendellhu95
- hullis
- hsuanxyz
- simplejason
- wenqi73
Expand Down
36 changes: 18 additions & 18 deletions .github/nz-boot.yml
Expand Up @@ -79,24 +79,24 @@ issue:
Typography: hsuanxyz
Space: hsuanxyz
Resizable: hsuanxyz
Breadcrumb: wendellhu95
Empty: wendellhu95
Carousel: wendellhu95
Cascader: wendellhu95
Descriptions: wendellhu95
Icon: wendellhu95
Message: wendellhu95
Notification: wendellhu95
Popconfirm: wendellhu95
Popover: wendellhu95
Progress: wendellhu95
Rate: wendellhu95
Result: wendellhu95
Slider: wendellhu95
Statistic: wendellhu95
Timeline: wendellhu95
Tooltip: wendellhu95
CodeEditor: wendellhu95
Breadcrumb: hullis
Empty: hullis
Carousel: hullis
Cascader: hullis
Descriptions: hullis
Icon: hullis
Message: hullis
Notification: hullis
Popconfirm: hullis
Popover: hullis
Progress: hullis
Rate: hullis
Result: hullis
Slider: hullis
Statistic: hullis
Timeline: hullis
Tooltip: hullis
CodeEditor: hullis
Calendar: wenqi73
DatePicker: wenqi73
Skeleton: wenqi73
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-styles.yml
Expand Up @@ -10,7 +10,7 @@ jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: hsuanxyz/zorro-styles-sync-action@v1
- uses: hsuanxyz/zorro-styles-sync-action@v1.1
with:
account_token: ${{ secrets.BOT_TOKEN }}
version: ${{ github.event.inputs.version }}
98 changes: 98 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,101 @@
## [13.3.2](https://github.com/NG-ZORRO/ng-zorro-antd/compare/13.3.0...13.3.2) (2022-06-25)


### Bug Fixes

* **input-number:** fix errors before initialization ([#7531](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7531)) ([800e6f4](https://github.com/NG-ZORRO/ng-zorro-antd/commit/800e6f4f1495d63edcb0f992836a75a40e3ca5b6))


## [13.3.1](https://github.com/NG-ZORRO/ng-zorro-antd/compare/13.3.0...13.3.1) (2022-06-20)


### Bug Fixes

* **input, input-number, steps:** fix styles in components ([#7522](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7522)) ([222b225](https://github.com/NG-ZORRO/ng-zorro-antd/commit/222b225ed4d4e56de049b08d7e6e8a77d476d481))



# [13.3.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/13.2.2...13.3.0) (2022-06-15)


### Bug Fixes

* **icon:** add missing zorro used icon: deleteOutline ([#7499](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7499)) ([ba6bade](https://github.com/NG-ZORRO/ng-zorro-antd/commit/ba6badee1fff04eeb811ef50ac03cf9ccfeaebf7))
* **tooltip:** is not aligned on first display ([#7457](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7457)) ([23a2fd5](https://github.com/NG-ZORRO/ng-zorro-antd/commit/23a2fd567af598625267187dea2db487e570b9b7)), closes [#7453](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7453)
* **transfer:** `submit` behavior for button inside form ([#7413](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7413)) ([0cfebca](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0cfebca5ebe4f7239212f99753cbbfd1d2790f63)), closes [#7410](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7410)


### Features

* **cascader:** support setting status ([#7452](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7452)) ([e10908e](https://github.com/NG-ZORRO/ng-zorro-antd/commit/e10908e505b93f2e2d76f24c3f0dc7972fda266c))
* **date-picker:** support setting status ([#7479](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7479)) ([c3d0874](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c3d08742247a2f2e12d070e352aa7932f9a0d326))
* **form:** make form work with status ([#7489](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7489)) ([98ac620](https://github.com/NG-ZORRO/ng-zorro-antd/commit/98ac620a1eac4e307505450fbf7890f5b3da20ff))
* **input-number:** support input number group ([#7488](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7488)) ([b038fa2](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b038fa26703ab010dab1b03946986e6f5c6ee66c))
* **input-number:** support setting status ([#7462](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7462)) ([0c9287a](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0c9287a2005149f2ecd1b6b3ad58d7374013bb6b))
* **input:** support setting status ([#7472](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7472)) ([999215e](https://github.com/NG-ZORRO/ng-zorro-antd/commit/999215e6ba45f1e3e32f561052ce8a902af895d7))
* **mentions:** support setting status ([#7467](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7467)) ([ac38b2d](https://github.com/NG-ZORRO/ng-zorro-antd/commit/ac38b2d64697f307e79720a691fbdf60c32fb8d0))
* **segmented:** implement new component ([#7404](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7404)) ([95a31da](https://github.com/NG-ZORRO/ng-zorro-antd/commit/95a31dab42dce3895d012bd2458ef51ec90ef33f))
* **select:** support setting status ([#7478](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7478)) ([44b7fe0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/44b7fe0e1f8892a2da9e9950da40081bab767d4d))
* **time-picker:** support setting status ([#7473](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7473)) ([0d8249b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0d8249b31e70c28ea47f37b818ff1c5fe0ac8239))
* **transfer:** support setting status ([#7475](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7475)) ([9b98fe1](https://github.com/NG-ZORRO/ng-zorro-antd/commit/9b98fe11f4832c774067b10e50f6b981b9147dbe))
* **tree-select:** add status ([#7477](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7477)) ([40815ad](https://github.com/NG-ZORRO/ng-zorro-antd/commit/40815ad90d4160be4a6a9dd29ee7b072ecde5f75))



## [13.2.2](https://github.com/NG-ZORRO/ng-zorro-antd/compare/13.2.1...13.2.2) (2022-05-12)


### Bug Fixes

* **tree-view:** trigger markforcheck after nodes changed ([#7426](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7426)) ([a702674](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a702674d76974bcc8fa854394bd6681d8dfe8347))



## [13.2.1](https://github.com/NG-ZORRO/ng-zorro-antd/compare/13.2.0...13.2.1) (2022-04-27)


### Bug Fixes

* **code-editor:** remove monaco-editor dependency in config.ts ([#7392](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7392)) ([929084d](https://github.com/NG-ZORRO/ng-zorro-antd/commit/929084d5ba65c4e9661ccaea300c58e85e39bed6))



# [13.2.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/13.1.1...13.2.0) (2022-04-26)


### Bug Fixes

* **carousel:** fix nzAfterChange callback value not correctly ([#7326](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7326)) ([b517bd4](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b517bd442fa36f4cfc5e4a37d587b4f26cfb940c)), closes [#7323](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7323)
* **cascader:** fix the problem of disappearing drop-down menu ([#7381](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7381)) ([3d41ce0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3d41ce08769bcbf337590169ded3559b092bc5cd))
* **cascader:** update position when click menu item ([#7306](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7306)) ([4c669a5](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4c669a58f0bf02bc835e2d68402b5ea0c98511c5))
* **i18n:** update fr translations ([#7364](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7364)) ([64e1c7c](https://github.com/NG-ZORRO/ng-zorro-antd/commit/64e1c7cf2bd3b094a0124ed8ddb51edab284b927))
* **list:** re-enter the Angular zone when the `NgZone.onStable` emits ([#7314](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7314)) ([425f8df](https://github.com/NG-ZORRO/ng-zorro-antd/commit/425f8dff39f29ba620cdeb6f4a6f45471845b819))
* **modal:** no longer trigger any action when closing ([#7336](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7336)) ([d169452](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d16945249a28338ba480af46ff037d69b67b4af4))
* **popconfirm:** reverting missing nzPopconfirmVisibleChange ([#7338](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7338)) ([561041c](https://github.com/NG-ZORRO/ng-zorro-antd/commit/561041c3e7ce643cc57cfd2c18c22dd36da389c8))
* **upload:** fix upload drag drop will open new tab in firefox 91 and 92 ([#7190](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7190)) ([9b51874](https://github.com/NG-ZORRO/ng-zorro-antd/commit/9b518742e3be8c85c0b2e2e66d4ffe108e43a2d0))


### Features

* **code-editor:** add global configuration to support monaco require config ([#7121](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7121)) ([21ec517](https://github.com/NG-ZORRO/ng-zorro-antd/commit/21ec517ba55cd20aa78298cd1050069308a9f98b))
* **code-editor:** support MonacoEnvironment config in NZ_CONFIG ([#7359](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7359)) ([4dfd9cd](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4dfd9cd21507fcf4382d5f28f03fd969d8fc425c)), closes [#6502](https://github.com/NG-ZORRO/ng-zorro-antd/issues/6502)
* **image:** nz-image add press `left` or `right` to switch image ([#7321](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7321)) ([b5f82b5](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b5f82b51eed45f9bc7f7418c90185693887b202a))
* **input-number:** add `nzReadOnly` property ([#7372](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7372)) ([0da7496](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0da7496ba4dcc03be2827b6783a977382e487da1)), closes [#7369](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7369)


### Performance Improvements

* **anchor:** mark `scroll` listener as passive ([#7330](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7330)) ([aab060f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/aab060ffcebae479954355bf02804882935ef8d2))
* **back-top:** mark `scroll` listener as passive ([#7329](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7329)) ([7f3c4e1](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7f3c4e1c5e8330597b5b0024c7b9075bccf93f44))
* **cascader:** do not run change detection on `change` event ([#7312](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7312)) ([cb803f9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/cb803f9a8c040157d83e095ce9ab0bd28a161b64))
* **image:** do not run change detection when the image preview is clicked ([#7309](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7309)) ([752a5b6](https://github.com/NG-ZORRO/ng-zorro-antd/commit/752a5b6f3e76d467a839a39aa587deaed953ed72))
* **input-number:** do not run change detection when `mouseup` and `mouseleave` events are dispatched on handlers ([#7313](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7313)) ([54386ef](https://github.com/NG-ZORRO/ng-zorro-antd/commit/54386efaac97982675c8c1e1b3504cfed9671248))
* **modal:** call `focus()` on the next rendering frame to prevent frame drop ([#7293](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7293)) ([106d346](https://github.com/NG-ZORRO/ng-zorro-antd/commit/106d346d72568f8256a942478d808d002f5421c7))
* **resizable:** mark `mousedown` and `touchstart` listeners as passive ([#7331](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7331)) ([518997b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/518997bcf193a59510a0dfc1db4ef306475eb990))
* **tree-view:** do not run change detection when the `nz-tree-node-checkbox` is clicked ([#7307](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7307)) ([1e0872b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1e0872b30873644032917f6242f585ba9bd1db30))



## [13.1.1](https://github.com/NG-ZORRO/ng-zorro-antd/compare/13.1.0...13.1.1) (2022-03-03)


Expand Down
7 changes: 3 additions & 4 deletions components/anchor/style/index.less
Expand Up @@ -56,12 +56,11 @@

&-link {
padding: @anchor-link-padding;
line-height: 1.143;

&-title {
position: relative;
display: block;
margin-bottom: 6px;
margin-bottom: 3px;
overflow: hidden;
color: @text-color;
white-space: nowrap;
Expand All @@ -79,8 +78,8 @@
}

&-link &-link {
padding-top: 5px;
padding-bottom: 5px;
padding-top: 2px;
padding-bottom: 2px;
}
}

Expand Down
3 changes: 2 additions & 1 deletion components/auto-complete/demo/module
Expand Up @@ -2,5 +2,6 @@ import { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzSpaceModule } from 'ng-zorro-antd/space';

export const moduleList = [ NzAutocompleteModule, NzInputModule, NzButtonModule, NzIconModule ];
export const moduleList = [NzAutocompleteModule, NzInputModule, NzButtonModule, NzIconModule, NzSpaceModule];
14 changes: 14 additions & 0 deletions components/auto-complete/demo/status.md
@@ -0,0 +1,14 @@
---
order: 6
title:
zh-CN: 自定义状态
en-US: Status
---

## zh-CN

使用 `nzStatus` 为 AutoComplete 添加状态,可选 `error` 或者 `warning`

## en-US

Add status to AutoComplete with `nzStatus`, which could be `error` or `warning`.
16 changes: 16 additions & 0 deletions components/auto-complete/demo/status.ts
@@ -0,0 +1,16 @@
import { Component, ViewEncapsulation } from '@angular/core';

@Component({
selector: 'nz-demo-auto-complete-status',
encapsulation: ViewEncapsulation.None,
template: `
<nz-space nzDirection="vertical" style="width: 100%">
<input *nzSpaceItem nz-input [(ngModel)]="value" [nzAutocomplete]="auto" nzStatus="error" />
<input *nzSpaceItem nz-input [(ngModel)]="value" [nzAutocomplete]="auto" nzStatus="warning" />
<nz-autocomplete [nzDataSource]="['12345', '23456', '34567']" #auto></nz-autocomplete>
</nz-space>
`
})
export class NzDemoAutoCompleteStatusComponent {
value?: string;
}
10 changes: 10 additions & 0 deletions components/back-top/style/responsive.less
@@ -1,11 +1,21 @@
@media screen and (max-width: @screen-md) {
.@{backtop-prefix-cls} {
right: 60px;

&-rtl {
right: auto;
left: 60px;
}
}
}

@media screen and (max-width: @screen-xs) {
.@{backtop-prefix-cls} {
right: 20px;

&-rtl {
right: auto;
left: 20px;
}
}
}
35 changes: 34 additions & 1 deletion components/badge/style/rtl.less
Expand Up @@ -6,7 +6,7 @@
&:not(&-not-a-wrapper) &-count,
&:not(&-not-a-wrapper) &-dot,
&:not(&-not-a-wrapper) .@{number-prefix-cls}-custom-component {
.@{badge-prefix-cls}-rtl & {
.@{badge-prefix-cls}-rtl& {
right: auto;
left: 0;
direction: ltr;
Expand All @@ -30,6 +30,17 @@
}
}
}

&:not(&-not-a-wrapper).@{badge-prefix-cls}-rtl {
.@{badge-prefix-cls}-zoom-appear,
.@{badge-prefix-cls}-zoom-enter {
animation-name: antZoomBadgeInRtl;
}

.@{badge-prefix-cls}-zoom-leave {
animation-name: antZoomBadgeOutRtl;
}
}
}

.@{ribbon-prefix-cls}-rtl {
Expand Down Expand Up @@ -65,3 +76,25 @@
}
}
}

@keyframes antZoomBadgeInRtl {
0% {
transform: scale(0) translate(-50%, -50%);
opacity: 0;
}

100% {
transform: scale(1) translate(-50%, -50%);
}
}

@keyframes antZoomBadgeOutRtl {
0% {
transform: scale(1) translate(-50%, -50%);
}

100% {
transform: scale(0) translate(-50%, -50%);
opacity: 0;
}
}
12 changes: 10 additions & 2 deletions components/breadcrumb/style/index.less
Expand Up @@ -13,6 +13,14 @@
font-size: @breadcrumb-icon-font-size;
}

ol {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
list-style: none;
}

a {
color: @breadcrumb-link-color;
transition: color 0.3s;
Expand All @@ -22,15 +30,15 @@
}
}

& > span:last-child {
li:last-child {
color: @breadcrumb-last-item-color;

a {
color: @breadcrumb-last-item-color;
}
}

& > span:last-child &-separator {
li:last-child &-separator {
display: none;
}

Expand Down

0 comments on commit 13e6ff1

Please sign in to comment.