From 1990b8e708d4d955fb2dd689220c5e5a1c5bb0b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Fri, 26 May 2023 11:31:02 +0800 Subject: [PATCH 1/6] chore: bump rc-field-form (#42635) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 72e13cabcf..f522cfd2d3 100644 --- a/package.json +++ b/package.json @@ -128,7 +128,7 @@ "rc-dialog": "~9.1.0", "rc-drawer": "~6.1.1", "rc-dropdown": "~4.1.0", - "rc-field-form": "~1.31.0", + "rc-field-form": "~1.32.0", "rc-image": "~5.16.0", "rc-input": "~1.0.4", "rc-input-number": "~7.4.0", From ce6d6d4e61d7f5bf6a2172f2732473d572531a99 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 26 May 2023 14:56:10 +0800 Subject: [PATCH 2/6] chore: add pull-request-stats workflows (#42579) * chore: add issues and prs stat workflows * Delete issue-stat.yml * Update README.md --- .github/workflows/pr-stat.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/pr-stat.yml diff --git a/.github/workflows/pr-stat.yml b/.github/workflows/pr-stat.yml new file mode 100644 index 0000000000..de68af4519 --- /dev/null +++ b/.github/workflows/pr-stat.yml @@ -0,0 +1,12 @@ +name: Pull Request Stats + +on: + pull_request: + types: [opened] + +jobs: + stats: + runs-on: ubuntu-latest + steps: + - name: Run pull request stats + uses: flowwer-dev/pull-request-stats@master From 98e391ca93e4ed3bdd2a3ac89007f00ee9d938ac Mon Sep 17 00:00:00 2001 From: Goku <2438335190@qq.com> Date: Fri, 26 May 2023 16:14:33 +0800 Subject: [PATCH 3/6] =?UTF-8?q?fix:=20=F0=9F=90=9B=20add=20border-radius?= =?UTF-8?q?=20of=20the=20image-mask=20when=20hover=20Card=20(#42642)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 🐛 add border-radius of the image-mask when hover Card * Apply suggestions from code review Optimize the css code structure Co-authored-by: afc163 --------- Co-authored-by: liugenmei@yzw.cn Co-authored-by: afc163 --- components/card/style/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/card/style/index.ts b/components/card/style/index.ts index 6afcfb997a..0091da3708 100644 --- a/components/card/style/index.ts +++ b/components/card/style/index.ts @@ -224,6 +224,7 @@ const genCardLoadingStyle: GenerateStyle = (token): CSSObject => { // ============================== Basic ============================== const genCardStyle: GenerateStyle = (token): CSSObject => { const { + antCls, componentCls, cardShadow, cardHeadPadding, @@ -268,7 +269,7 @@ const genCardStyle: GenerateStyle = (token): CSSObject => { width: '100%', }, - img: { + [`img, img + ${antCls}-image-mask`]: { borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`, }, }, From defcd377e8a03bdc4c103391d312c8cc824d70a8 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 26 May 2023 17:09:08 +0800 Subject: [PATCH 4/6] chore: skip pr stat action on fork repo (#42650) --- .github/workflows/pr-stat.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-stat.yml b/.github/workflows/pr-stat.yml index de68af4519..084de44ff2 100644 --- a/.github/workflows/pr-stat.yml +++ b/.github/workflows/pr-stat.yml @@ -6,6 +6,7 @@ on: jobs: stats: + if: github.repository == 'ant-design/ant-design' runs-on: ubuntu-latest steps: - name: Run pull request stats From 814d15a247eb91c401d8239e27bf52529fa0fbcc Mon Sep 17 00:00:00 2001 From: tchen <39820191+895433995@users.noreply.github.com> Date: Fri, 26 May 2023 17:47:57 +0800 Subject: [PATCH 5/6] fix: add visibility:hidden to selector:after (#42651) Co-authored-by: tchen --- components/select/style/multiple.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/select/style/multiple.tsx b/components/select/style/multiple.tsx index 49284974dd..157115dbad 100644 --- a/components/select/style/multiple.tsx +++ b/components/select/style/multiple.tsx @@ -72,6 +72,7 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject { width: 0, margin: `${FIXED_ITEM_MARGIN}px 0`, lineHeight: `${selectItemHeight}px`, + visibility: 'hidden', content: '"\\a0"', }, }, From a4876c64764d590f8c2dc9420c2b4ee2e55adb47 Mon Sep 17 00:00:00 2001 From: Digital-512 <57298727+Digital-512@users.noreply.github.com> Date: Sat, 27 May 2023 05:57:49 +0300 Subject: [PATCH 6/6] chore: Update Lithuanian locale (#42664) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update lt_LT.ts What has been changed: - Missing translations added - Several translation errors corrected and minor improvements * Update lt_LT.ts Added missing translation rangeQuarterPlaceholder: ['Pradžios ketvirtis', 'Pabaigos ketvirtis'] --- components/date-picker/locale/lt_LT.ts | 1 + components/locale/lt_LT.ts | 60 ++++++++++++++++++-------- 2 files changed, 42 insertions(+), 19 deletions(-) diff --git a/components/date-picker/locale/lt_LT.ts b/components/date-picker/locale/lt_LT.ts index f20f9e94ba..56b00b5b20 100644 --- a/components/date-picker/locale/lt_LT.ts +++ b/components/date-picker/locale/lt_LT.ts @@ -12,6 +12,7 @@ const locale: PickerLocale = { weekPlaceholder: 'Pasirinkite savaitę', rangePlaceholder: ['Pradžios data', 'Pabaigos data'], rangeYearPlaceholder: ['Pradžios metai', 'Pabaigos metai'], + rangeQuarterPlaceholder: ['Pradžios ketvirtis', 'Pabaigos ketvirtis'], rangeMonthPlaceholder: ['Pradžios mėnesis', 'Pabaigos mėnesis'], rangeWeekPlaceholder: ['Pradžios savaitė', 'Pabaigos savaitė'], ...CalendarLocale, diff --git a/components/locale/lt_LT.ts b/components/locale/lt_LT.ts index d467461990..506fbecd40 100644 --- a/components/locale/lt_LT.ts +++ b/components/locale/lt_LT.ts @@ -1,9 +1,8 @@ /* eslint-disable no-template-curly-in-string */ - import Pagination from 'rc-pagination/lib/locale/lt_LT'; +import type { Locale } from '.'; import Calendar from '../calendar/locale/lt_LT'; import DatePicker from '../date-picker/locale/lt_LT'; -import type { Locale } from '.'; import TimePicker from '../time-picker/locale/lt_LT'; const typeTemplate: string = '${label} neatitinka tipo ${type}'; @@ -14,14 +13,20 @@ const localeValues: Locale = { DatePicker, TimePicker, Calendar, + global: { + placeholder: 'Pasirinkite', + }, Table: { filterTitle: 'Filtras', filterConfirm: 'Gerai', filterReset: 'Atstatyti', filterEmptyText: 'Be filtrų', + filterCheckall: 'Pasirinkti visus', + filterSearchPlaceholder: 'Ieškoti filtruose', emptyText: 'Nėra duomenų', selectAll: 'Pasirinkti viską', selectInvert: 'Apversti pasirinkimą', + selectNone: 'Išvalyti visus', selectionAll: 'Rinktis visus', sortTitle: 'Rikiavimas', expand: 'Išskleisti', @@ -30,6 +35,11 @@ const localeValues: Locale = { triggerAsc: 'Spustelėkite norėdami rūšiuoti didėjančia tvarka', cancelSort: 'Spustelėkite, kad atšauktumėte rūšiavimą', }, + Tour: { + Next: 'Kitas', + Previous: 'Ankstesnis', + Finish: 'Baigti', + }, Modal: { okText: 'Taip', cancelText: 'Atšaukti', @@ -45,18 +55,18 @@ const localeValues: Locale = { itemUnit: 'vnt.', itemsUnit: 'vnt.', remove: 'Pašalinti', - selectAll: 'Pasirinkti visus', - selectCurrent: 'Pasirinkite dabartinį puslapį', - selectInvert: 'Atkeist pasirinkimą', - removeAll: 'Ištrinti visus duomenis', + selectCurrent: 'Pasirinkti dabartinį puslapį', removeCurrent: 'Ištrinti dabartinį puslapį', + selectAll: 'Pasirinkti viską', + removeAll: 'Ištrinti viską', + selectInvert: 'Apversti pasirinkimą', }, Upload: { - uploading: 'Gaunami duomenys...', + uploading: 'Įkeliami duomenys...', removeFile: 'Ištrinti failą', uploadError: 'Įkeliant įvyko klaida', previewFile: 'Failo peržiūra', - downloadFile: 'Įkelti failą', + downloadFile: 'Atsisiųsti failą', }, Empty: { description: 'Nėra duomenų', @@ -74,11 +84,12 @@ const localeValues: Locale = { back: 'Atgal', }, Form: { + optional: '(neprivaloma)', defaultValidateMessages: { - default: 'Laukelio klaida ${label}', + default: 'Klaida laukelyje ${label}', required: 'Prašome įvesti ${label}', - enum: '${label} turėtu būti vienas iš [${enum}]', - whitespace: '${label} negali likti tuščiu', + enum: '${label} turi būti vienas iš [${enum}]', + whitespace: '${label} negali likti tuščias', date: { format: '${label} neteisingas datos formatas', parse: '${label} negali būti konvertuotas į datą', @@ -101,26 +112,37 @@ const localeValues: Locale = { }, string: { len: '${label} turi būti ${len} simbolių', - min: '${label} turi būti ilgesnis nei ${min} simbolių', - max: '${label} turi būti ne trumpesnis ${max} simbolių', - range: 'Lauko ${label} reikšmės ribos ${min}-${max} simbolių', + min: '${label} turi būti bent ${min} simbolių', + max: '${label} turi būti ne ilgesnis nei ${max} simbolių', + range: 'Laukelio ${label} reikšmės ribos ${min}-${max} simbolių', }, number: { len: '${label} turi būti lygi ${len}', - min: '${label} turi būti lygus arba didesnis ${min}', - max: '${label} turi būti lygus arba mažesnis ${max}', + min: '${label} turi būti lygus arba didesnis už ${min}', + max: '${label} turi būti lygus arba mažesnis už ${max}', + range: '${label} turi būti tarp ${min}-${max}', }, array: { len: 'Pasirinktas kiekis ${label} turi būti lygus ${len}', - min: 'Pasirinktas kiekis ${label} turi būti lygus arba didesnis ${min}', - max: 'Pasirinktas kiekis ${label} turi būti lygus arba mažesnis ${max}', - range: 'Pasirinktas kiekis ${label} turi būti tarp ${min} и ${max}', + min: 'Pasirinktas kiekis ${label} turi būti bent ${min}', + max: 'Pasirinktas kiekis ${label} turi būti ne ilgesnis nei ${max}', + range: 'Pasirinktas ${label} kiekis turi būti tarp ${min}-${max}', }, pattern: { mismatch: '${label} neatitinka modelio ${pattern}', }, }, }, + Image: { + preview: 'Peržiūrėti', + }, + QRCode: { + expired: 'QR kodo galiojimas baigėsi', + refresh: 'Atnaujinti', + }, + ColorPicker: { + presetEmpty: 'Tuščia', + }, }; export default localeValues;