From 967f22210dca8f79ce3894ae954393c256c04771 Mon Sep 17 00:00:00 2001 From: Yuri Pirola Date: Mon, 15 Apr 2019 11:32:08 +0200 Subject: [PATCH 01/22] Add Italian localization of Icon, Text and global components --- components/locale-provider/it_IT.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/locale-provider/it_IT.tsx b/components/locale-provider/it_IT.tsx index e4e4c83852..fcfd6ab9f1 100644 --- a/components/locale-provider/it_IT.tsx +++ b/components/locale-provider/it_IT.tsx @@ -9,6 +9,9 @@ export default { DatePicker, TimePicker, Calendar, + global: { + placeholder: 'Selezionare', + }, Table: { filterTitle: 'Menù Filtro', filterConfirm: 'OK', @@ -40,4 +43,13 @@ export default { Empty: { description: 'Nessun dato', }, + Icon: { + icon: 'icona', + }, + Text: { + edit: 'modifica', + copy: 'copia', + copied: 'copia effettuata', + expand: 'espandi', + }, }; From 6a7e8986b8d4e81a1efff117a3a06f8b510c60ef Mon Sep 17 00:00:00 2001 From: Rick Zhou Date: Tue, 16 Apr 2019 08:21:14 -0700 Subject: [PATCH 02/22] fix card mode Tabs border style when used with tabPosition="bottom" --- components/tabs/style/card-style.less | 1 + 1 file changed, 1 insertion(+) diff --git a/components/tabs/style/card-style.less b/components/tabs/style/card-style.less index 813ca11aa5..b8396908e7 100644 --- a/components/tabs/style/card-style.less +++ b/components/tabs/style/card-style.less @@ -146,6 +146,7 @@ // https://github.com/ant-design/ant-design/issues/9104 & &-card-bar&-bottom-bar &-tab { + height: auto; border-top: 0; border-bottom: @border-width-base @border-style-base @border-color-split; border-radius: 0 0 @border-radius-base @border-radius-base; From 4084b925125df85fd3b08f92774f167119726b58 Mon Sep 17 00:00:00 2001 From: Alessio Felicioni Date: Thu, 18 Apr 2019 15:40:13 +0200 Subject: [PATCH 03/22] Updates LocaleProvider italian language package --- components/locale-provider/it_IT.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/locale-provider/it_IT.tsx b/components/locale-provider/it_IT.tsx index e4e4c83852..c9c2001e34 100644 --- a/components/locale-provider/it_IT.tsx +++ b/components/locale-provider/it_IT.tsx @@ -28,7 +28,7 @@ export default { }, Transfer: { searchPlaceholder: 'Cerca qui', - itemUnit: 'articolo', + itemUnit: 'elemento', itemsUnit: 'elementi', }, Upload: { From a530be1eabc4591339479cb548a6b02699ee221e Mon Sep 17 00:00:00 2001 From: zombieJ Date: Mon, 22 Apr 2019 15:47:07 +0800 Subject: [PATCH 04/22] adjust hoist-non-react-statics ts import (#16224) --- components/form/interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/interface.ts b/components/form/interface.ts index fa2fa03628..9570420169 100644 --- a/components/form/interface.ts +++ b/components/form/interface.ts @@ -1,5 +1,5 @@ import * as React from 'react'; -import hoistNonReactStatics from 'hoist-non-react-statics'; +import * as hoistNonReactStatics from 'hoist-non-react-statics'; import { Omit } from '../_util/type'; import { FormComponentProps } from './Form'; From 440a3f497a477d585a2e30e0435e7bcd9719fb81 Mon Sep 17 00:00:00 2001 From: zombieJ Date: Mon, 22 Apr 2019 18:03:06 +0800 Subject: [PATCH 05/22] fix pagination is null crash (#16231) --- components/list/__tests__/pagination.test.js | 8 ++++++++ components/list/index.tsx | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/list/__tests__/pagination.test.js b/components/list/__tests__/pagination.test.js index a5c9f65647..b0bc80492e 100644 --- a/components/list/__tests__/pagination.test.js +++ b/components/list/__tests__/pagination.test.js @@ -195,4 +195,12 @@ describe('List.pagination', () => { .render(), ).toMatchSnapshot(); }); + + it('should not crash when pagination is null', () => { + mount( + createList({ + pagination: null, + }), + ); + }); }); diff --git a/components/list/index.tsx b/components/list/index.tsx index 1003875e9d..c4f75695d8 100644 --- a/components/list/index.tsx +++ b/components/list/index.tsx @@ -93,7 +93,7 @@ export default class List extends React.Component, ListState> { super(props); const { pagination } = props; - const paginationObj = typeof pagination === 'object' ? pagination : {}; + const paginationObj = pagination && typeof pagination === 'object' ? pagination : {}; this.state = { paginationCurrent: paginationObj.defaultCurrent || 1, From 286330fffdd651a1d7e2f2e9a60d2d11218cf288 Mon Sep 17 00:00:00 2001 From: zombieJ Date: Mon, 22 Apr 2019 18:31:58 +0800 Subject: [PATCH 06/22] update change log (#16233) --- CHANGELOG.en-US.md | 9 +++++++++ CHANGELOG.zh-CN.md | 9 +++++++++ package.json | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 881dd42005..bb1cdcec93 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -15,6 +15,15 @@ timeline: true --- +## 3.16.5 + +`2019-04-22` + +- 🐞 Fix Table in Firefox miss bottom line when sorter enabled. [#16174](https://github.com/ant-design/ant-design/pull/16174) +- 🐞 Fix List crash when `pagination` is `null`. [#16231](https://github.com/ant-design/ant-design/pull/16231) +- TypeScript + - 🐞 Fix typescript `hoist-non-react-statics` has no default export warning with `allowSyntheticDefaultImports: false`. [#16224](https://github.com/ant-design/ant-design/pull/16224) + ## 3.16.4 `2019-04-21` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 9fc247604f..4c8cac880c 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -15,6 +15,15 @@ timeline: true --- +## 3.16.5 + +`2019-04-22` + +- 🐞 修复 Firefox 中 Table 使用 sorter 丢失线框的样式问题。[#16174](https://github.com/ant-design/ant-design/pull/16174) +- 🐞 修复 List 中设置 `pagination` 为 `null` 时报错的问题。[#16231](https://github.com/ant-design/ant-design/pull/16231) +- TypeScript + - 🐞 修复 `allowSyntheticDefaultImports: false` 下 `hoist-non-react-statics` 报错的问题。[#16224](https://github.com/ant-design/ant-design/pull/16224) + ## 3.16.4 `2019-04-21` diff --git a/package.json b/package.json index ee9dd1a073..82eaed4c15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "3.16.4", + "version": "3.16.5", "title": "Ant Design", "description": "An enterprise-class UI design language and React-based implementation", "homepage": "http://ant.design/", From aab26933757f4fae282992958cba0dd6bc4d2e73 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 21 Apr 2019 00:06:26 +0800 Subject: [PATCH 07/22] :up: upgrade devDep --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 82eaed4c15..b890a6dce5 100644 --- a/package.json +++ b/package.json @@ -189,7 +189,7 @@ "stylelint-config-prettier": "^5.0.0", "stylelint-config-rational-order": "^0.1.0", "stylelint-config-standard": "^18.2.0", - "stylelint-declaration-block-no-ignored-properties": "^1.1.0", + "stylelint-declaration-block-no-ignored-properties": "^2.0.0", "stylelint-order": "^3.0.0", "typescript": "~3.4.1", "unified": "^7.0.0", From d1fa21155d09eaf3f001baf20ec581526e85545a Mon Sep 17 00:00:00 2001 From: zombieJ Date: Mon, 22 Apr 2019 21:42:09 +0800 Subject: [PATCH 08/22] fix: Select should trigger onSearch when search input is empty (#16235) * update rc-select * update demo --- components/select/demo/search.md | 17 +++++++++++------ package.json | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/components/select/demo/search.md b/components/select/demo/search.md index 54ef83127e..3b24152592 100644 --- a/components/select/demo/search.md +++ b/components/select/demo/search.md @@ -18,27 +18,32 @@ import { Select } from 'antd'; const Option = Select.Option; -function handleChange(value) { +function onChange(value) { console.log(`selected ${value}`); } -function handleBlur() { +function onBlur() { console.log('blur'); } -function handleFocus() { +function onFocus() { console.log('focus'); } +function onSearch(val) { + console.log('search:', val); +} + ReactDOM.render(