-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
08
@@ -2364,15 +2492,47 @@ exports[`Locale Provider should display the text as de 1`] = `
-
+
`;
-exports[`Locale Provider should display the text as el 1`] = `
+exports[`Locale Provider should display the text as de 1`] = `
~ Click to confirm
-
+
- Δεν βρέθηκε
+ Nicht gefunden
-
- Δε |
- Τρ |
- Τε |
- Πε |
- Πα |
- Σα |
- Κυ |
+ Mo |
+ Di |
+ Mi |
+ Do |
+ Fr |
+ Sa |
+ So |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
03
@@ -2507,43 +2667,43 @@ exports[`Locale Provider should display the text as el 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
10
@@ -2551,43 +2711,43 @@ exports[`Locale Provider should display the text as el 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
17
@@ -2595,43 +2755,43 @@ exports[`Locale Provider should display the text as el 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
24
@@ -2639,43 +2799,43 @@ exports[`Locale Provider should display the text as el 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
01
@@ -2683,43 +2843,43 @@ exports[`Locale Provider should display the text as el 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
08
@@ -2731,15 +2891,47 @@ exports[`Locale Provider should display the text as el 1`] = `
-
+
`;
-exports[`Locale Provider should display the text as en 1`] = `
+exports[`Locale Provider should display the text as el 1`] = `
~ Click to confirm
-
+
- Not Found
+ Δεν βρέθηκε
-
- Su |
- Mo |
- Tu |
- We |
- Th |
- Fr |
- Sa |
+ Δε |
+ Τρ |
+ Τε |
+ Πε |
+ Πα |
+ Σα |
+ Κυ |
-
-
- |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
+
+
+ |
-
+
`;
-exports[`Locale Provider should display the text as en-gb 1`] = `
+exports[`Locale Provider should display the text as en 1`] = `
-
`;
-exports[`Locale Provider should display the text as es 1`] = `
+exports[`Locale Provider should display the text as en-gb 1`] = `
~ Click to confirm
-
+
- No encontrado
+ Not Found
-
- lu |
- ma |
- mi |
- ju |
- vi |
- sá |
- do |
+ Mo |
+ Tu |
+ We |
+ Th |
+ Fr |
+ Sa |
+ Su |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
03
@@ -3608,43 +3864,43 @@ exports[`Locale Provider should display the text as es 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
10
@@ -3652,43 +3908,43 @@ exports[`Locale Provider should display the text as es 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
17
@@ -3696,43 +3952,43 @@ exports[`Locale Provider should display the text as es 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
24
@@ -3740,43 +3996,43 @@ exports[`Locale Provider should display the text as es 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
01
@@ -3784,43 +4040,43 @@ exports[`Locale Provider should display the text as es 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
08
@@ -3832,15 +4088,47 @@ exports[`Locale Provider should display the text as es 1`] = `
-
+
`;
-exports[`Locale Provider should display the text as et 1`] = `
+exports[`Locale Provider should display the text as es 1`] = `
~ Click to confirm
-
+
- Ei leitud
+ No encontrado
-
- E |
- T |
- K |
- N |
- R |
- L |
- P |
+ lu |
+ ma |
+ mi |
+ ju |
+ vi |
+ sá |
+ do |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
03
@@ -3975,43 +4263,43 @@ exports[`Locale Provider should display the text as et 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
10
@@ -4019,43 +4307,43 @@ exports[`Locale Provider should display the text as et 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
17
@@ -4063,43 +4351,43 @@ exports[`Locale Provider should display the text as et 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
24
@@ -4107,43 +4395,43 @@ exports[`Locale Provider should display the text as et 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
01
@@ -4151,43 +4439,43 @@ exports[`Locale Provider should display the text as et 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
08
@@ -4199,15 +4487,47 @@ exports[`Locale Provider should display the text as et 1`] = `
-
+
`;
-exports[`Locale Provider should display the text as fa 1`] = `
+exports[`Locale Provider should display the text as et 1`] = `
~ Click to confirm
-
+
- دادهای موجود نیست
+ Ei leitud
-
- ش |
- ی |
- د |
- س |
- چ |
- پ |
- ج |
+ E |
+ T |
+ K |
+ N |
+ R |
+ L |
+ P |
-
-
- |
-
-
- |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
+
+
+ |
+
+
+ |
-
+
`;
-exports[`Locale Provider should display the text as fi 1`] = `
+exports[`Locale Provider should display the text as fa 1`] = `
~ Click to confirm
-
+
- Ei löytynyt
+ دادهای موجود نیست
-
- ma |
- ti |
- ke |
- to |
- pe |
- la |
- su |
+ ش |
+ ی |
+ د |
+ س |
+ چ |
+ پ |
+ ج |
-
+ |
+
+ |
+
+
+ |
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
- |
-
-
- |
-
+
`;
-exports[`Locale Provider should display the text as fr 1`] = `
+exports[`Locale Provider should display the text as fi 1`] = `
~ Click to confirm
-
+
- Pas de résultat
+ Ei löytynyt
-
- lu |
- ma |
- me |
- je |
- ve |
- sa |
- di |
+ ma |
+ ti |
+ ke |
+ to |
+ pe |
+ la |
+ su |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
03
@@ -5076,43 +5460,43 @@ exports[`Locale Provider should display the text as fr 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
10
@@ -5120,43 +5504,43 @@ exports[`Locale Provider should display the text as fr 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
17
@@ -5164,43 +5548,43 @@ exports[`Locale Provider should display the text as fr 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
24
@@ -5208,43 +5592,43 @@ exports[`Locale Provider should display the text as fr 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
01
@@ -5252,43 +5636,43 @@ exports[`Locale Provider should display the text as fr 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
08
@@ -5300,12 +5684,44 @@ exports[`Locale Provider should display the text as fr 1`] = `
-
+
`;
-exports[`Locale Provider should display the text as fr 2`] = `
+exports[`Locale Provider should display the text as fr 1`] = `
-
`;
-exports[`Locale Provider should display the text as is 1`] = `
+exports[`Locale Provider should display the text as fr 2`] = `
~ Click to confirm
-
+
- Engar færslur
+ Pas de résultat
-
- Má |
- Þr |
- Mi |
- Fi |
- Fö |
- La |
- Su |
+ lu |
+ ma |
+ me |
+ je |
+ ve |
+ sa |
+ di |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
03
@@ -5810,43 +6258,43 @@ exports[`Locale Provider should display the text as is 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
10
@@ -5854,43 +6302,43 @@ exports[`Locale Provider should display the text as is 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
17
@@ -5898,43 +6346,43 @@ exports[`Locale Provider should display the text as is 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
24
@@ -5942,43 +6390,43 @@ exports[`Locale Provider should display the text as is 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
01
@@ -5986,43 +6434,43 @@ exports[`Locale Provider should display the text as is 1`] = `
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
08
@@ -6034,15 +6482,47 @@ exports[`Locale Provider should display the text as is 1`] = `
-
+
`;
-exports[`Locale Provider should display the text as it 1`] = `
+exports[`Locale Provider should display the text as he 1`] = `
~ Click to confirm
-
- lu |
- ma |
- me |
- gi |
- ve |
- sa |
- do |
+ א |
+ ב |
+ ג |
+ ד |
+ ה |
+ ו |
+ ש |
-
+ |
+
+ |
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
- |
-
+
`;
-exports[`Locale Provider should display the text as ja 1`] = `
+exports[`Locale Provider should display the text as hu 1`] = `
~ Click to confirm
-
+
- 結果はありません
+ Nem található
-
- 日 |
- 月 |
- 火 |
- 水 |
- 木 |
- 金 |
- 土 |
+ h |
+ k |
+ sze |
+ cs |
+ p |
+ szo |
+ v |
-
-
- |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
+
+
+ |
-
+
`;
-exports[`Locale Provider should display the text as ko 1`] = `
+exports[`Locale Provider should display the text as id 1`] = `
~ Click to confirm
-
+
- 데이터 없음
+ Tidak ditemukan
-
- 일 |
- 월 |
- 화 |
- 수 |
- 목 |
- 금 |
- 토 |
+ Sn |
+ Sl |
+ Rb |
+ Km |
+ Jm |
+ Sb |
+ Mg |
-
-
- |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
+
+
+ |
-
+
`;
-exports[`Locale Provider should display the text as ku-iq 1`] = `
+exports[`Locale Provider should display the text as is 1`] = `
~ Click to confirm
-
+
- Peyda Nebû
+ Engar færslur
-
- ش |
- ی |
- د |
- س |
- چ |
- پ |
- ه |
+ Má |
+ Þr |
+ Mi |
+ Fi |
+ Fö |
+ La |
+ Su |
-
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Locale Provider should display the text as it 1`] = `
+
+
+ ~ Click to confirm
+
+
+
+
+
+
+
+
+ lu |
+ ma |
+ me |
+ gi |
+ ve |
+ sa |
+ do |
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Locale Provider should display the text as ja 1`] = `
+
+
+ ~ Click to confirm
+
+
+
+
+
+
+
+
+ 日 |
+ 月 |
+ 火 |
+ 水 |
+ 木 |
+ 金 |
+ 土 |
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Locale Provider should display the text as ko 1`] = `
+
+
+ ~ Click to confirm
+
+
+
+
+
+
+
+
+ 일 |
+ 월 |
+ 화 |
+ 수 |
+ 목 |
+ 금 |
+ 토 |
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Locale Provider should display the text as ku-iq 1`] = `
+
+
+ ~ Click to confirm
+
+
+
+
+
+
+
+
+ ش |
+ ی |
+ د |
+ س |
+ چ |
+ پ |
+ ه |
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+`;
+
+exports[`Locale Provider should display the text as mn-mn 1`] = `
+
`;
-exports[`Locale Provider should display the text as mn-mn 1`] = `
+exports[`Locale Provider should display the text as nb 1`] = `
~ Click to confirm
-
+
- Олдсонгүй
+ Ingen treff
-
- Ня |
- Да |
- Мя |
- Лх |
- Пү |
- Ба |
- Бя |
+ ma |
+ ti |
+ on |
+ to |
+ fr |
+ lø |
+ sø |
-
-
- |
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
-
+ |
|
-
+ |
+
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
+
+
+ |
-
+
`;
-exports[`Locale Provider should display the text as nb 1`] = `
+exports[`Locale Provider should display the text as ne-np 1`] = `
~ Click to confirm
-
- ma |
- ti |
- on |
- to |
- fr |
- lø |
- sø |
+ आ. |
+ सो. |
+ मं. |
+ बु. |
+ बि. |
+ शु. |
+ श. |
-
+ |
+
+ |
+
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
+
+
|
-
-
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
+ |
|
-
-
- |
-
+
`;
@@ -8257,21 +10924,21 @@ exports[`Locale Provider should display the text as nl 1`] = `
~
~
@@ -8648,21 +11347,21 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
-
`;
@@ -8991,21 +11722,21 @@ exports[`Locale Provider should display the text as pl 1`] = `
~
@@ -9015,21 +11746,21 @@ exports[`Locale Provider should display the text as pl 1`] = `
-
`;
@@ -9358,21 +12121,21 @@ exports[`Locale Provider should display the text as pt 1`] = `
~
@@ -9382,21 +12145,21 @@ exports[`Locale Provider should display the text as pt 1`] = `
-
`;
@@ -9725,21 +12520,21 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
~
@@ -9749,21 +12544,21 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
-
`;
@@ -10092,21 +12919,21 @@ exports[`Locale Provider should display the text as ru 1`] = `
~
@@ -10116,21 +12943,21 @@ exports[`Locale Provider should display the text as ru 1`] = `
-
`;
@@ -10459,21 +13318,21 @@ exports[`Locale Provider should display the text as sk 1`] = `
~
@@ -10483,21 +13342,21 @@ exports[`Locale Provider should display the text as sk 1`] = `
-
`;
@@ -10826,21 +13717,21 @@ exports[`Locale Provider should display the text as sl 1`] = `
~
@@ -10850,21 +13741,21 @@ exports[`Locale Provider should display the text as sl 1`] = `
-
`;
@@ -11193,21 +14116,21 @@ exports[`Locale Provider should display the text as sr 1`] = `
~
@@ -11217,21 +14140,21 @@ exports[`Locale Provider should display the text as sr 1`] = `
Nisu pronađeni rezultati pretrage
-
`;
@@ -11560,21 +14515,21 @@ exports[`Locale Provider should display the text as sv 1`] = `
~
@@ -11584,21 +14539,21 @@ exports[`Locale Provider should display the text as sv 1`] = `
-
`;
@@ -11927,21 +14914,21 @@ exports[`Locale Provider should display the text as th 1`] = `
~
@@ -11951,21 +14938,21 @@ exports[`Locale Provider should display the text as th 1`] = `
-
`;
@@ -12294,21 +15313,21 @@ exports[`Locale Provider should display the text as tr 1`] = `
~
@@ -12318,21 +15337,21 @@ exports[`Locale Provider should display the text as tr 1`] = `
-
`;
@@ -12661,21 +15712,21 @@ exports[`Locale Provider should display the text as uk 1`] = `
~
@@ -12685,21 +15736,21 @@ exports[`Locale Provider should display the text as uk 1`] = `
-
`;
@@ -13028,21 +16111,21 @@ exports[`Locale Provider should display the text as vi 1`] = `
~
@@ -13052,21 +16135,21 @@ exports[`Locale Provider should display the text as vi 1`] = `
-
`;
@@ -13395,21 +16510,21 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
~
@@ -13419,21 +16534,21 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
-
`;
@@ -13762,21 +16909,21 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
~
@@ -13786,21 +16933,21 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
-
`;
diff --git a/components/locale-provider/__tests__/index.test.js b/components/locale-provider/__tests__/index.test.js
index f59baf29db..ac432f152d 100644
--- a/components/locale-provider/__tests__/index.test.js
+++ b/components/locale-provider/__tests__/index.test.js
@@ -5,45 +5,93 @@ import moment from 'moment'
import MockDate from 'mockdate'
import { LocaleProvider, Pagination, DatePicker, TimePicker, Calendar,
Popconfirm, Table, Modal, Select, Transfer } from '../..'
+import arEG from '../ar_EG'
+import bgBG from '../bg_BG'
+import caES from '../ca_ES'
+import csCZ from '../cs_CZ'
+import daDK from '../da_DK'
+import deDE from '../de_DE'
+import elGR from '../el_GR'
import enGB from '../en_GB'
+import enUS from '../en_US'
+import esES from '../es_ES'
+import etEE from '../et_EE'
+import faIR from '../fa_IR'
+import fiFI from '../fi_FI'
+import frBE from '../fr_BE'
import frFR from '../fr_FR'
-import nlBE from '../nl_BE'
+import heIL from '../he_IL'
+import huHU from '../hu_HU'
+import isIS from '../is_IS'
import itIT from '../it_IT'
-import enUS from '../en_US'
+import jaJP from '../ja_JP'
+import koKR from '../ko_KR'
+import kuIQ from '../ku_IQ'
+import mnMN from '../mn_MN'
+import nbNO from '../nb_NO'
+import neNP from '../ne-NP'
+import nlBE from '../nl_BE'
+import nlNL from '../nl_NL'
+import plPL from '../pl_PL'
import ptBR from '../pt_BR'
import ptPT from '../pt_PT'
import ruRU from '../ru_RU'
-import esES from '../es_ES'
-import svSE from '../sv_SE'
-import frBE from '../fr_BE'
-import deDE from '../de_DE'
-import nlNL from '../nl_NL'
-import caES from '../ca_ES'
-import csCZ from '../cs_CZ'
-import koKR from '../ko_KR'
-import etEE from '../et_EE'
import skSK from '../sk_SK'
-import jaJP from '../ja_JP'
-import trTR from '../tr_TR'
-import zhTW from '../zh_TW'
-import fiFI from '../fi_FI'
-import plPL from '../pl_PL'
-import bgBG from '../bg_BG'
-import viVN from '../vi_VN'
-import thTH from '../th_TH'
-import faIR from '../fa_IR'
-import elGR from '../el_GR'
-import nbNO from '../nb_NO'
-import srRS from '../sr_RS'
import slSI from '../sl_SI'
-import isIS from '../is_IS'
-import arEG from '../ar_EG'
+import srRS from '../sr_RS'
+import svSE from '../sv_SE'
+import thTH from '../th_TH'
+import trTR from '../tr_TR'
import ukUA from '../uk_UA'
+import viVN from '../vi_VN'
+import idID from '../id_ID'
import zhCN from '../zh_CN'
-import kuIQ from '../ku_IQ'
-import mnMN from '../mn_MN'
+import zhTW from '../zh_TW'
-const locales = [enUS, ptBR, ptPT, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, etEE, skSK, jaJP, trTR, zhTW, fiFI, plPL, bgBG, enGB, frFR, nlBE, itIT, viVN, thTH, faIR, elGR, nbNO, srRS, slSI, isIS, arEG, ukUA, zhCN, kuIQ, mnMN]
+const locales = [
+ arEG,
+ bgBG,
+ caES,
+ csCZ,
+ daDK,
+ deDE,
+ elGR,
+ enGB,
+ enUS,
+ esES,
+ etEE,
+ faIR,
+ fiFI,
+ frBE,
+ frFR,
+ heIL,
+ huHU,
+ isIS,
+ itIT,
+ jaJP,
+ koKR,
+ kuIQ,
+ mnMN,
+ nbNO,
+ neNP,
+ nlBE,
+ nlNL,
+ plPL,
+ ptBR,
+ ptPT,
+ ruRU,
+ skSK,
+ slSI,
+ srRS,
+ svSE,
+ thTH,
+ trTR,
+ ukUA,
+ viVN,
+ idID,
+ zhCN,
+ zhTW,
+]
const { Option } = Select
const { RangePicker } = DatePicker
diff --git a/components/locale-provider/da_DK.js b/components/locale-provider/da_DK.js
new file mode 100644
index 0000000000..ea7540a536
--- /dev/null
+++ b/components/locale-provider/da_DK.js
@@ -0,0 +1,44 @@
+import Pagination from '../vc-pagination/locale/da_DK'
+import DatePicker from '../date-picker/locale/da_DK'
+import TimePicker from '../time-picker/locale/da_DK'
+import Calendar from '../calendar/locale/da_DK'
+
+export default {
+ locale: 'da',
+ DatePicker,
+ TimePicker,
+ Calendar,
+ Pagination,
+ Table: {
+ filterTitle: 'Filtermenu',
+ filterConfirm: 'OK',
+ filterReset: 'Nulstil',
+ emptyText: 'Ingen data',
+ selectAll: 'Vælg alle',
+ selectInvert: 'Inverter valg',
+ },
+ Modal: {
+ okText: 'OK',
+ cancelText: 'Afbryd',
+ justOkText: 'OK',
+ },
+ Popconfirm: {
+ okText: 'OK',
+ cancelText: 'Afbryd',
+ },
+ Transfer: {
+ notFoundContent: 'Intet fundet',
+ searchPlaceholder: 'Søg her',
+ itemUnit: 'element',
+ itemsUnit: 'elementer',
+ },
+ Select: {
+ notFoundContent: 'Intet fundet',
+ },
+ Upload: {
+ uploading: 'Uploader...',
+ removeFile: 'Fjern fil',
+ uploadError: 'Fejl ved upload',
+ previewFile: 'Forhåndsvisning',
+ },
+}
diff --git a/components/locale-provider/default.js b/components/locale-provider/default.js
index b11a453e88..3c6bca8979 100644
--- a/components/locale-provider/default.js
+++ b/components/locale-provider/default.js
@@ -9,6 +9,10 @@ export default {
DatePicker,
TimePicker,
Calendar,
+ // locales for all comoponents
+ global: {
+ placeholder: 'Please select',
+ },
Table: {
filterTitle: 'Filter menu',
filterConfirm: 'OK',
diff --git a/components/locale-provider/fi_FI.js b/components/locale-provider/fi_FI.js
index 9bbfb60339..2b3279de0b 100644
--- a/components/locale-provider/fi_FI.js
+++ b/components/locale-provider/fi_FI.js
@@ -16,6 +16,7 @@ export default {
emptyText: 'Ei kohteita',
selectAll: 'Valitse kaikki',
selectInvert: 'Valitse päinvastoin',
+ sortTitle: 'Lajittele',
},
Modal: {
okText: 'OK',
diff --git a/components/locale-provider/he_IL.js b/components/locale-provider/he_IL.js
new file mode 100644
index 0000000000..a90ad4dd6c
--- /dev/null
+++ b/components/locale-provider/he_IL.js
@@ -0,0 +1,44 @@
+import Pagination from '../vc-pagination/locale/he_IL'
+import DatePicker from '../date-picker/locale/he_IL'
+import TimePicker from '../time-picker/locale/he_IL'
+import Calendar from '../calendar/locale/he_IL'
+
+export default {
+ locale: 'he',
+ Pagination,
+ DatePicker,
+ TimePicker,
+ Calendar,
+ Table: {
+ filterTitle: 'תפריט סינון',
+ filterConfirm: 'אישור',
+ filterReset: 'איפוס',
+ emptyText: 'אין מידע',
+ selectAll: 'בחר הכל',
+ selectInvert: 'הפוך בחירה',
+ },
+ Modal: {
+ okText: 'אישור',
+ cancelText: 'ביטול',
+ justOkText: 'אישור',
+ },
+ Popconfirm: {
+ okText: 'אישור',
+ cancelText: 'ביטול',
+ },
+ Transfer: {
+ notFoundContent: 'לא נמצא',
+ searchPlaceholder: 'חפש כאן',
+ itemUnit: 'פריט',
+ itemsUnit: 'פריטים',
+ },
+ Select: {
+ notFoundContent: 'לא נמצא',
+ },
+ Upload: {
+ uploading: 'מעלה...',
+ removeFile: 'הסר קובץ',
+ uploadError: 'שגיאת העלאה',
+ previewFile: 'הצג קובץ',
+ },
+}
diff --git a/components/locale-provider/hu_HU.js b/components/locale-provider/hu_HU.js
new file mode 100644
index 0000000000..b9c3875291
--- /dev/null
+++ b/components/locale-provider/hu_HU.js
@@ -0,0 +1,45 @@
+import Pagination from '../vc-pagination/locale/hu_HU'
+import DatePicker from '../date-picker/locale/hu_HU'
+import TimePicker from '../time-picker/locale/hu_HU'
+import Calendar from '../calendar/locale/hu_HU'
+
+export default {
+ locale: 'hu',
+ Pagination,
+ DatePicker,
+ TimePicker,
+ Calendar,
+ Table: {
+ filterTitle: 'Szűrők',
+ filterConfirm: 'Alkalmazás',
+ filterReset: 'Visszaállítás',
+ emptyText: 'Nincs adat',
+ selectAll: 'Jelenlegi oldal kiválasztása',
+ selectInvert: 'Jelenlegi oldal inverze',
+ sortTitle: 'Rendezés',
+ },
+ Modal: {
+ okText: 'Alkalmazás',
+ cancelText: 'Visszavonás',
+ justOkText: 'Alkalmazás',
+ },
+ Popconfirm: {
+ okText: 'Alkalmazás',
+ cancelText: 'Visszavonás',
+ },
+ Transfer: {
+ notFoundContent: 'Nem található',
+ searchPlaceholder: 'Keresés',
+ itemUnit: 'elem',
+ itemsUnit: 'elemek',
+ },
+ Select: {
+ notFoundContent: 'Nem található',
+ },
+ Upload: {
+ uploading: 'Feltöltés...',
+ removeFile: 'Fájl eltávolítása',
+ uploadError: 'Feltöltési hiba',
+ previewFile: 'Fájl előnézet',
+ },
+}
diff --git a/components/locale-provider/id_ID.js b/components/locale-provider/id_ID.js
new file mode 100644
index 0000000000..1bc4d2d7a4
--- /dev/null
+++ b/components/locale-provider/id_ID.js
@@ -0,0 +1,46 @@
+import Pagination from '../vc-pagination/locale/id_ID'
+import DatePicker from '../date-picker/locale/id_ID'
+import TimePicker from '../time-picker/locale/id_ID'
+import Calendar from '../calendar/locale/id_ID'
+
+export default {
+ locale: 'id',
+ Pagination,
+ DatePicker,
+ TimePicker,
+ Calendar,
+ Table: {
+ filterTitle: 'Menu filter',
+ filterConfirm: 'baik',
+ filterReset: 'Setel ulang',
+ emptyText: 'Tidak ada data',
+ selectAll: 'Pilih halaman saat ini',
+ selectInvert: 'Balikkan halaman saat ini',
+ sortTitle: 'Menyortir',
+ },
+ Modal: {
+ okText: 'baik',
+ cancelText: 'Membatalkan',
+ justOkText: 'baik',
+ },
+ Popconfirm: {
+ okText: 'baik',
+ cancelText: 'Membatalkan',
+ },
+ Transfer: {
+ titles: ['', ''],
+ notFoundContent: 'Tidak ditemukan',
+ searchPlaceholder: 'Cari di sini',
+ itemUnit: 'barang',
+ itemsUnit: 'item',
+ },
+ Select: {
+ notFoundContent: 'Tidak ditemukan',
+ },
+ Upload: {
+ uploading: 'Mengunggah...',
+ removeFile: 'Hapus file',
+ uploadError: 'Kesalahan pengunggahan',
+ previewFile: 'File pratinjau',
+ },
+}
diff --git a/components/locale-provider/index.en-US.md b/components/locale-provider/index.en-US.md
index a958034e13..049a64fff1 100644
--- a/components/locale-provider/index.en-US.md
+++ b/components/locale-provider/index.en-US.md
@@ -15,7 +15,10 @@
-```
\ No newline at end of file
+```
diff --git a/components/menu/index.en-US.md b/components/menu/index.en-US.md
index 4179e30f66..9b2d18b9e3 100644
--- a/components/menu/index.en-US.md
+++ b/components/menu/index.en-US.md
@@ -46,6 +46,7 @@
| ----- | ----------- | ---- | ------------- |
| disabled | whether menu item is disabled or not | boolean | false |
| key | unique id of the menu item | string | |
+| title | set display title for collapsed item | string | |
### Menu.SubMenu
diff --git a/components/menu/index.jsx b/components/menu/index.jsx
index bcbb0d2cc4..447a9ad26c 100644
--- a/components/menu/index.jsx
+++ b/components/menu/index.jsx
@@ -45,6 +45,7 @@ const Menu = {
mixins: [BaseMixin],
inject: {
layoutSiderContext: { default: {}},
+ configProvider: { default: {}},
},
model: {
prop: 'selectedKeys',
@@ -176,26 +177,19 @@ const Menu = {
const { openAnimation, openTransitionName } = this.$props
let menuOpenAnimation = openAnimation || openTransitionName
if (openAnimation === undefined && openTransitionName === undefined) {
- switch (menuMode) {
- case 'horizontal':
- menuOpenAnimation = 'slide-up'
- break
- case 'vertical':
- case 'vertical-left':
- case 'vertical-right':
+ if (menuMode === 'horizontal') {
+ menuOpenAnimation = 'slide-up'
+ } else if (menuMode === 'inline') {
+ menuOpenAnimation = { on: animation }
+ } else {
// When mode switch from inline
// submenu should hide without animation
- if (this.switchingModeFromInline) {
- menuOpenAnimation = ''
- this.switchingModeFromInline = false
- } else {
- menuOpenAnimation = 'zoom-big'
- }
- break
- case 'inline':
- menuOpenAnimation = { on: animation }
- break
- default:
+ if (this.switchingModeFromInline) {
+ menuOpenAnimation = ''
+ this.switchingModeFromInline = false
+ } else {
+ menuOpenAnimation = 'zoom-big'
+ }
}
}
return menuOpenAnimation
@@ -204,7 +198,8 @@ const Menu = {
render () {
const { layoutSiderContext, $slots, $listeners } = this
const { collapsedWidth } = layoutSiderContext
- const { prefixCls, theme } = this.$props
+ const { getPopupContainer: getContextPopupContainer } = this.configProvider
+ const { prefixCls, theme, getPopupContainer } = this.$props
const menuMode = this.getRealMenuMode()
const menuOpenAnimation = this.getMenuOpenAnimation(menuMode)
@@ -216,6 +211,7 @@ const Menu = {
const menuProps = {
props: {
...omit(this.$props, ['inlineCollapsed']),
+ getPopupContainer: getPopupContainer || getContextPopupContainer,
openKeys: this.sOpenKeys,
mode: menuMode,
},
diff --git a/components/menu/index.zh-CN.md b/components/menu/index.zh-CN.md
index c4c4604eec..aa19701f4c 100644
--- a/components/menu/index.zh-CN.md
+++ b/components/menu/index.zh-CN.md
@@ -44,6 +44,7 @@
| --- | --- | --- | --- |
| disabled | 是否禁用 | boolean | false |
| key | item 的唯一标志 | string | |
+| title | 设置收缩时展示的悬浮标题 | string | |
### Menu.SubMenu
diff --git a/components/menu/style/dark.less b/components/menu/style/dark.less
index 4428b91781..562c94ac01 100644
--- a/components/menu/style/dark.less
+++ b/components/menu/style/dark.less
@@ -5,8 +5,8 @@
color: @menu-dark-color;
background: @menu-dark-bg;
.@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
- opacity: .45;
- transition: all .3s;
+ opacity: 0.45;
+ transition: all 0.3s;
&:after,
&:before {
background: @menu-dark-arrow-color;
@@ -20,7 +20,7 @@
&-dark &-inline&-sub {
background: @menu-dark-submenu-bg;
- box-shadow: 0 2px 8px rgba(0, 0, 0, .45) inset;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) inset;
}
&-dark&-horizontal {
diff --git a/components/menu/style/index.less b/components/menu/style/index.less
index 0a3740dd44..82c2bb131b 100644
--- a/components/menu/style/index.less
+++ b/components/menu/style/index.less
@@ -1,7 +1,7 @@
-@import "../../style/themes/default";
-@import "../../style/mixins/index";
+@import '../../style/themes/default';
+@import '../../style/mixins/index';
-@menu-prefix-cls: ~"@{ant-prefix}-menu";
+@menu-prefix-cls: ~'@{ant-prefix}-menu';
// default theme
.@{menu-prefix-cls} {
@@ -14,7 +14,7 @@
color: @menu-item-color;
background: @menu-bg;
line-height: 0; // Fix display inline-block gap
- transition: background .3s, width .2s;
+ transition: background 0.3s, width 0.2s;
.clearfix;
ul,
@@ -33,12 +33,13 @@
font-size: @font-size-base;
line-height: @line-height-base;
padding: 8px 16px;
- transition: all .3s;
+ transition: all 0.3s;
}
&-submenu,
&-submenu-inline {
- transition: border-color .3s @ease-in-out, background .3s @ease-in-out, padding .15s @ease-in-out;
+ transition: border-color 0.3s @ease-in-out, background 0.3s @ease-in-out,
+ padding 0.15s @ease-in-out;
}
&-item:active,
@@ -48,7 +49,7 @@
&-submenu &-sub {
cursor: initial;
- transition: background .3s @ease-in-out, padding .3s @ease-in-out;
+ transition: background 0.3s @ease-in-out, padding 0.3s @ease-in-out;
}
&-item > a {
@@ -67,7 +68,7 @@
left: 0;
bottom: 0;
right: 0;
- content: "";
+ content: '';
}
}
@@ -153,14 +154,15 @@
position: relative;
display: block;
white-space: nowrap;
- transition: color .3s @ease-in-out, border-color .3s @ease-in-out, background .3s @ease-in-out, padding .15s @ease-in-out;
+ transition: color 0.3s @ease-in-out, border-color 0.3s @ease-in-out,
+ background 0.3s @ease-in-out, padding 0.15s @ease-in-out;
.@{iconfont-css-prefix} {
min-width: 14px;
margin-right: 10px;
font-size: @font-size-base;
- transition: font-size .15s @ease-out, margin .3s @ease-in-out;
+ transition: font-size 0.15s @ease-out, margin 0.3s @ease-in-out;
+ span {
- transition: opacity .3s @ease-in-out, width .3s @ease-in-out;
+ transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
opacity: 1;
}
}
@@ -193,7 +195,7 @@
right: 0;
bottom: 0;
content: ' ';
- opacity: .0001;
+ opacity: 0.0001;
}
}
@@ -201,7 +203,7 @@
background-color: @menu-bg;
border-radius: @border-radius-base;
&-submenu-title:after {
- transition: transform .3s @ease-in-out;
+ transition: transform 0.3s @ease-in-out;
}
}
@@ -210,14 +212,14 @@
&-vertical-right,
&-inline {
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
- transition: transform .3s @ease-in-out;
+ transition: transform 0.3s @ease-in-out;
position: absolute;
top: 50%;
right: 16px;
width: 10px;
&:before,
&:after {
- content: "";
+ content: '';
position: absolute;
vertical-align: baseline;
background: #fff;
@@ -225,7 +227,8 @@
width: 6px;
height: 1.5px;
border-radius: 2px;
- transition: background .3s @ease-in-out, transform .3s @ease-in-out, top .3s @ease-in-out;
+ transition: background 0.3s @ease-in-out, transform 0.3s @ease-in-out,
+ top 0.3s @ease-in-out;
}
&:before {
transform: rotate(45deg) translateY(-2px);
@@ -252,7 +255,9 @@
}
&-open {
- &.@{menu-prefix-cls}-submenu-inline > .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
+ &.@{menu-prefix-cls}-submenu-inline
+ > .@{menu-prefix-cls}-submenu-title
+ .@{menu-prefix-cls}-submenu-arrow {
transform: translateY(-2px);
&:after {
transform: rotate(-45deg) translateX(-2px);
@@ -314,7 +319,7 @@
}
&:after {
- content: "\20";
+ content: '\20';
display: block;
height: 0;
clear: both;
@@ -328,15 +333,15 @@
.@{menu-prefix-cls}-item {
position: relative;
&:after {
- content: "";
+ content: '';
position: absolute;
right: 0;
top: 0;
bottom: 0;
border-right: @menu-item-active-border-width solid @menu-highlight-color;
- transform: scaleY(.0001);
+ transform: scaleY(0.0001);
opacity: 0;
- transition: transform .15s @ease-out, opacity .15s @ease-out;
+ transition: transform 0.15s @ease-out, opacity 0.15s @ease-out;
}
}
@@ -373,7 +378,7 @@
.@{menu-prefix-cls}-selected,
.@{menu-prefix-cls}-item-selected {
&:after {
- transition: transform .15s @ease-in-out, opacity .15s @ease-in-out;
+ transition: transform 0.15s @ease-in-out, opacity 0.15s @ease-in-out;
opacity: 1;
transform: scaleY(1);
}
@@ -381,7 +386,7 @@
.@{menu-prefix-cls}-item,
.@{menu-prefix-cls}-submenu-title {
- width: ~"calc(100% + 1px)";
+ width: ~'calc(100% + 1px)';
}
.@{menu-prefix-cls}-submenu-title {
@@ -392,8 +397,13 @@
&-inline-collapsed {
width: @menu-collapsed-width;
> .@{menu-prefix-cls}-item,
- > .@{menu-prefix-cls}-item-group > .@{menu-prefix-cls}-item-group-list > .@{menu-prefix-cls}-item,
- > .@{menu-prefix-cls}-item-group > .@{menu-prefix-cls}-item-group-list > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title,
+ > .@{menu-prefix-cls}-item-group
+ > .@{menu-prefix-cls}-item-group-list
+ > .@{menu-prefix-cls}-item,
+ > .@{menu-prefix-cls}-item-group
+ > .@{menu-prefix-cls}-item-group-list
+ > .@{menu-prefix-cls}-submenu
+ > .@{menu-prefix-cls}-submenu-title,
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
left: 0;
text-overflow: clip;
diff --git a/components/message/style/index.less b/components/message/style/index.less
index bef367345f..fca96c3b5b 100644
--- a/components/message/style/index.less
+++ b/components/message/style/index.less
@@ -1,7 +1,7 @@
-@import "../../style/themes/default";
-@import "../../style/mixins/index";
+@import '../../style/themes/default';
+@import '../../style/mixins/index';
-@message-prefix-cls: ~"@{ant-prefix}-message";
+@message-prefix-cls: ~'@{ant-prefix}-message';
.@{message-prefix-cls} {
.reset-component;
@@ -56,7 +56,7 @@
&-notice.move-up-leave.move-up-leave-active {
animation-name: MessageMoveOut;
overflow: hidden;
- animation-duration: .3s;
+ animation-duration: 0.3s;
}
}
diff --git a/components/modal/Modal.jsx b/components/modal/Modal.jsx
index d79019a8cb..5f9d12963a 100644
--- a/components/modal/Modal.jsx
+++ b/components/modal/Modal.jsx
@@ -29,7 +29,7 @@ const modalProps = (defaultProps = {}) => {
/** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调*/
// onCancel: (e: React.MouseEvent) => void,
afterClose: PropTypes.func.def(noop),
- /** 居中 */
+ /** 垂直居中 */
centered: PropTypes.bool,
/** 宽度*/
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
diff --git a/components/modal/confirm.js b/components/modal/confirm.js
index df5f92bc2d..7961872693 100644
--- a/components/modal/confirm.js
+++ b/components/modal/confirm.js
@@ -26,8 +26,7 @@ export default function confirm (config) {
confirmDialogInstance = null
div.parentNode.removeChild(div)
}
- const triggerCancel = args && args.length &&
- args.some(param => param && param.triggerCancel)
+ const triggerCancel = args.some(param => param && param.triggerCancel)
if (config.onCancel && triggerCancel) {
config.onCancel(...args)
}
diff --git a/components/modal/style/confirm.less b/components/modal/style/confirm.less
index 68ebb7c0e5..87dec63dfe 100644
--- a/components/modal/style/confirm.less
+++ b/components/modal/style/confirm.less
@@ -1,6 +1,6 @@
-@import "../../style/mixins/index";
+@import '../../style/mixins/index';
-@confirm-prefix-cls: ~"@{ant-prefix}-modal-confirm";
+@confirm-prefix-cls: ~'@{ant-prefix}-modal-confirm';
.@{confirm-prefix-cls} {
.@{ant-prefix}-modal-header {
diff --git a/components/modal/style/index.less b/components/modal/style/index.less
index 6f5d0b74d4..39d556571f 100644
--- a/components/modal/style/index.less
+++ b/components/modal/style/index.less
@@ -1,4 +1,4 @@
-@import "../../style/themes/default";
-@import "../../style/mixins/index";
-@import "./modal";
-@import "./confirm";
+@import '../../style/themes/default';
+@import '../../style/mixins/index';
+@import './modal';
+@import './confirm';
diff --git a/components/modal/style/modal.less b/components/modal/style/modal.less
index 7c40f97048..1d879696ef 100644
--- a/components/modal/style/modal.less
+++ b/components/modal/style/modal.less
@@ -1,5 +1,5 @@
-@dialog-prefix-cls: ~"@{ant-prefix}-modal";
-@table-prefix-cls: ~"@{ant-prefix}-table";
+@dialog-prefix-cls: ~'@{ant-prefix}-modal';
+@table-prefix-cls: ~'@{ant-prefix}-table';
.@{dialog-prefix-cls} {
.reset-component;
@@ -49,7 +49,7 @@
font-weight: 700;
line-height: 1;
text-decoration: none;
- transition: color .3s;
+ transition: color 0.3s;
color: @text-color-secondary;
outline: 0;
padding: 0;
@@ -117,7 +117,7 @@
background-color: @modal-mask-bg;
height: 100%;
z-index: @zindex-modal-mask;
- filter: ~"alpha(opacity=50)";
+ filter: ~'alpha(opacity=50)';
&-hidden {
display: none;
@@ -132,7 +132,7 @@
.@{dialog-prefix-cls}-centered {
text-align: center;
&:before {
- content: "";
+ content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
diff --git a/components/notification/__tests__/__snapshots__/demo.test.js.snap b/components/notification/__tests__/__snapshots__/demo.test.js.snap
index 8a02df53cc..f5f2012598 100644
--- a/components/notification/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/notification/__tests__/__snapshots__/demo.test.js.snap
@@ -11,10 +11,10 @@ exports[`renders ./components/notification/demo/duration.md correctly 1`] = `
diff --git a/components/notification/__tests__/index.test.js b/components/notification/__tests__/index.test.js
index 47238e463d..04e8009318 100644
--- a/components/notification/__tests__/index.test.js
+++ b/components/notification/__tests__/index.test.js
@@ -82,4 +82,12 @@ describe('notification', () => {
})
done()
})
+
+ it('trigger onClick', () => {
+ notification.open({
+ message: 'Notification Title',
+ duration: 0,
+ })
+ expect(document.querySelectorAll('.ant-notification').length).toBe(1)
+ })
})
diff --git a/components/notification/__tests__/placement.test.js b/components/notification/__tests__/placement.test.js
index d8bb7263d8..3df336d932 100644
--- a/components/notification/__tests__/placement.test.js
+++ b/components/notification/__tests__/placement.test.js
@@ -8,9 +8,8 @@ describe('Notification.placement', () => {
return document.body.querySelectorAll(className)
}
- function getStyle (el, prop, getComputedStyle, style) {
- getComputedStyle = getComputedStyle || window.getComputedStyle
- style = getComputedStyle ? getComputedStyle(el) : el.currentStyle
+ function getStyle (el, prop) {
+ const style = window.getComputedStyle ? window.getComputedStyle(el) : el.currentStyle
// If a css property's value is `auto`, it will return an empty string.
return prop ? style[prop] : style
diff --git a/components/notification/demo/basic.md b/components/notification/demo/basic.md
index d34fffc6cb..609f2ebe38 100644
--- a/components/notification/demo/basic.md
+++ b/components/notification/demo/basic.md
@@ -20,6 +20,9 @@ The simplest usage that close the notification box after 4.5s.
this.$notification.open({
message: 'Notification Title',
description: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.',
+ onClick: () => {
+ console.log('Notification Clicked!');
+ },
});
},
}
diff --git a/components/notification/index.en-US.md b/components/notification/index.en-US.md
index 57e89b79b1..f08ccc07d2 100644
--- a/components/notification/index.en-US.md
+++ b/components/notification/index.en-US.md
@@ -23,6 +23,7 @@ The properties of config are as follows:
| placement | Position of Notification, can be one of `topLeft` `topRight` `bottomLeft` `bottomRight` | string | `topRight` |
| style | Customized inline style | Object \| string | - |
| onClose | Specify a function that will be called when the close button is clicked | Function | - |
+| onClick | Specify a function that will be called when the notification is clicked | Function | - |
`notification` also provides a global `config()` method that can be used for specifying the default options. Once this method is used, all the notification boxes will take into account these globally defined options when displaying.
diff --git a/components/notification/index.js b/components/notification/index.js
index 5bb5514153..5819ac5b51 100644
--- a/components/notification/index.js
+++ b/components/notification/index.js
@@ -157,6 +157,7 @@ function notice (args) {
duration,
closable: true,
onClose: args.onClose,
+ onClick: args.onClick,
key: args.key,
style: args.style || {},
class: args.class,
diff --git a/components/notification/index.zh-CN.md b/components/notification/index.zh-CN.md
index ae8f0ef6c2..f596c815a4 100644
--- a/components/notification/index.zh-CN.md
+++ b/components/notification/index.zh-CN.md
@@ -31,6 +31,7 @@ config 参数如下:
| placement | 弹出位置,可选 `topLeft` `topRight` `bottomLeft` `bottomRight` | string | topRight |
| style | 自定义内联样式 | Object \| string | - |
| onClose | 点击默认关闭按钮时触发的回调函数 | Function | - |
+| onClick | 点击通知时触发的回调函数 | Function | - |
还提供了一个全局配置方法,在调用前提前配置,全局一次生效。
diff --git a/components/notification/style/index.less b/components/notification/style/index.less
index aee8bacbc4..d81edaa5e9 100644
--- a/components/notification/style/index.less
+++ b/components/notification/style/index.less
@@ -1,7 +1,7 @@
-@import "../../style/themes/default";
-@import "../../style/mixins/index";
+@import '../../style/themes/default';
+@import '../../style/mixins/index';
-@notification-prefix-cls: ~"@{ant-prefix}-notification";
+@notification-prefix-cls: ~'@{ant-prefix}-notification';
@notification-width: 384px;
@notification-padding-vertical: 16px;
@notification-padding-horizontal: 24px;
@@ -14,7 +14,7 @@
position: fixed;
z-index: @zindex-notification;
width: @notification-width;
- max-width: ~"calc(100vw - 32px)";
+ max-width: ~'calc(100vw - 32px)';
margin-right: 24px;
&-topLeft,
@@ -52,13 +52,13 @@
// https://github.com/ant-design/ant-design/issues/5846#issuecomment-296244140
&-single-line-auto-margin {
- width: ~"calc(@{notification-width} - @{notification-padding-horizontal} * 2 - 24px - 48px - 100%)";
+ width: ~'calc(@{notification-width} - @{notification-padding-horizontal} * 2 - 24px - 48px - 100%)';
background-color: transparent;
pointer-events: none;
display: block;
max-width: 4px;
&:before {
- content: "";
+ content: '';
display: block;
}
}
diff --git a/components/pagination/Pagination.jsx b/components/pagination/Pagination.jsx
index 3f14d58633..f536fcab6b 100644
--- a/components/pagination/Pagination.jsx
+++ b/components/pagination/Pagination.jsx
@@ -2,7 +2,6 @@
import PropTypes from '../_util/vue-types'
import VcSelect from '../select'
import MiniSelect from './MiniSelect'
-import enUS from '../vc-pagination/locale/en_US'
import LocaleReceiver from '../locale-provider/LocaleReceiver'
import { getOptionProps } from '../_util/props-util'
import VcPagination from '../vc-pagination'
@@ -121,7 +120,6 @@ export default {
return (
@@ -68,10 +68,10 @@ exports[`renders ./components/pagination/demo/changer.md correctly 1`] = `
@@ -111,12 +111,12 @@ exports[`renders ./components/pagination/demo/custom-changer.md correctly 1`] =
| | | | | |