@univerjs/design 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +12 -12
- package/lib/es/index.js +7862 -8004
- package/lib/locale/en-US.json +4 -3
- package/lib/locale/ru-RU.json +4 -3
- package/lib/locale/vi-VN.json +4 -3
- package/lib/locale/zh-CN.json +5 -3
- package/lib/locale/zh-TW.json +6 -3
- package/lib/types/components/select-list/SelectList.d.ts +8 -0
- package/lib/umd/index.js +12 -12
- package/package.json +10 -10
package/lib/locale/en-US.json
CHANGED
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"November",
|
|
33
33
|
"December"
|
|
34
34
|
],
|
|
35
|
+
"yearFormat": "YYYY",
|
|
36
|
+
"dayFormat": "D",
|
|
37
|
+
"cellMeridiemFormat": "A",
|
|
38
|
+
"monthBeforeYear": true,
|
|
35
39
|
"locale": "en_US",
|
|
36
40
|
"today": "Today",
|
|
37
41
|
"now": "Now",
|
|
@@ -46,11 +50,8 @@
|
|
|
46
50
|
"monthSelect": "Choose a month",
|
|
47
51
|
"yearSelect": "Choose a year",
|
|
48
52
|
"decadeSelect": "Choose a decade",
|
|
49
|
-
"yearFormat": "YYYY",
|
|
50
53
|
"dateFormat": "M/D/YYYY",
|
|
51
|
-
"dayFormat": "D",
|
|
52
54
|
"dateTimeFormat": "M/D/YYYY HH:mm:ss",
|
|
53
|
-
"monthBeforeYear": true,
|
|
54
55
|
"previousMonth": "Previous month (PageUp)",
|
|
55
56
|
"nextMonth": "Next month (PageDown)",
|
|
56
57
|
"previousYear": "Last year (Control + left)",
|
package/lib/locale/ru-RU.json
CHANGED
|
@@ -55,6 +55,10 @@
|
|
|
55
55
|
"M": "месяц",
|
|
56
56
|
"y": "год"
|
|
57
57
|
},
|
|
58
|
+
"yearFormat": "YYYY",
|
|
59
|
+
"dayFormat": "D",
|
|
60
|
+
"cellMeridiemFormat": "A",
|
|
61
|
+
"monthBeforeYear": true,
|
|
58
62
|
"locale": "ru_RU",
|
|
59
63
|
"today": "Сегодня",
|
|
60
64
|
"now": "Сейчас",
|
|
@@ -68,11 +72,8 @@
|
|
|
68
72
|
"monthSelect": "Выбрать месяц",
|
|
69
73
|
"yearSelect": "Выбрать год",
|
|
70
74
|
"decadeSelect": "Выбрать десятилетие",
|
|
71
|
-
"yearFormat": "YYYY",
|
|
72
75
|
"dateFormat": "D-M-YYYY",
|
|
73
|
-
"dayFormat": "D",
|
|
74
76
|
"dateTimeFormat": "D-M-YYYY HH:mm:ss",
|
|
75
|
-
"monthBeforeYear": true,
|
|
76
77
|
"previousMonth": "Предыдущий месяц (PageUp)",
|
|
77
78
|
"nextMonth": "Следующий месяц (PageDown)",
|
|
78
79
|
"previousYear": "Предыдущий год (Control + left)",
|
package/lib/locale/vi-VN.json
CHANGED
|
@@ -92,6 +92,10 @@
|
|
|
92
92
|
"y": "một năm",
|
|
93
93
|
"yy": "%d năm"
|
|
94
94
|
},
|
|
95
|
+
"yearFormat": "YYYY",
|
|
96
|
+
"dayFormat": "D",
|
|
97
|
+
"cellMeridiemFormat": "A",
|
|
98
|
+
"monthBeforeYear": true,
|
|
95
99
|
"locale": "vi_VN",
|
|
96
100
|
"today": "Hôm nay",
|
|
97
101
|
"now": "Bây giờ",
|
|
@@ -106,11 +110,8 @@
|
|
|
106
110
|
"monthSelect": "Chọn tháng",
|
|
107
111
|
"yearSelect": "Chọn năm",
|
|
108
112
|
"decadeSelect": "Chọn thập kỷ",
|
|
109
|
-
"yearFormat": "YYYY",
|
|
110
113
|
"dateFormat": "D/M/YYYY",
|
|
111
|
-
"dayFormat": "D",
|
|
112
114
|
"dateTimeFormat": "D/M/YYYY HH:mm:ss",
|
|
113
|
-
"monthBeforeYear": true,
|
|
114
115
|
"previousMonth": "Tháng trước (PageUp)",
|
|
115
116
|
"nextMonth": "Tháng sau (PageDown)",
|
|
116
117
|
"previousYear": "Năm trước (Control + left)",
|
package/lib/locale/zh-CN.json
CHANGED
|
@@ -93,10 +93,11 @@
|
|
|
93
93
|
"y": "1 年",
|
|
94
94
|
"yy": "%d 年"
|
|
95
95
|
},
|
|
96
|
-
"locale": "zh_CN",
|
|
97
96
|
"yearFormat": "YYYY年",
|
|
98
|
-
"
|
|
97
|
+
"dayFormat": "D",
|
|
99
98
|
"cellMeridiemFormat": "A",
|
|
99
|
+
"monthBeforeYear": false,
|
|
100
|
+
"locale": "zh_CN",
|
|
100
101
|
"today": "今天",
|
|
101
102
|
"now": "此刻",
|
|
102
103
|
"backToToday": "返回今天",
|
|
@@ -117,7 +118,8 @@
|
|
|
117
118
|
"previousDecade": "上一年代",
|
|
118
119
|
"nextDecade": "下一年代",
|
|
119
120
|
"previousCentury": "上一世纪",
|
|
120
|
-
"nextCentury": "下一世纪"
|
|
121
|
+
"nextCentury": "下一世纪",
|
|
122
|
+
"cellDateFormat": "D"
|
|
121
123
|
},
|
|
122
124
|
"CascaderList": {
|
|
123
125
|
"empty": "无"
|
package/lib/locale/zh-TW.json
CHANGED
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
"y": "1 年",
|
|
92
92
|
"yy": "%d 年"
|
|
93
93
|
},
|
|
94
|
+
"yearFormat": "YYYY年",
|
|
95
|
+
"dayFormat": "D",
|
|
96
|
+
"cellMeridiemFormat": "A",
|
|
97
|
+
"monthBeforeYear": false,
|
|
94
98
|
"locale": "zh_TW",
|
|
95
99
|
"today": "今天",
|
|
96
100
|
"now": "此刻",
|
|
@@ -107,8 +111,6 @@
|
|
|
107
111
|
"monthSelect": "選擇月份",
|
|
108
112
|
"yearSelect": "選擇年份",
|
|
109
113
|
"decadeSelect": "選擇年代",
|
|
110
|
-
"yearFormat": "YYYY年",
|
|
111
|
-
"dayFormat": "D",
|
|
112
114
|
"dateFormat": "YYYY年M月D日",
|
|
113
115
|
"dateTimeFormat": "YYYY年M月D日 HH時mm分ss秒",
|
|
114
116
|
"previousYear": "上一年 (Control鍵加左方向鍵)",
|
|
@@ -116,7 +118,8 @@
|
|
|
116
118
|
"previousDecade": "上一年代",
|
|
117
119
|
"nextDecade": "下一年代",
|
|
118
120
|
"previousCentury": "上一世紀",
|
|
119
|
-
"nextCentury": "下一世紀"
|
|
121
|
+
"nextCentury": "下一世紀",
|
|
122
|
+
"cellDateFormat": "D"
|
|
120
123
|
},
|
|
121
124
|
"CascaderList": {
|
|
122
125
|
"empty": "無"
|
|
@@ -24,5 +24,13 @@ export interface ISelectListProps {
|
|
|
24
24
|
*/
|
|
25
25
|
onChange: (value: string | string[] | undefined) => void;
|
|
26
26
|
multiple?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The className each option
|
|
29
|
+
*/
|
|
30
|
+
optionClassName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The className of the wrapper
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
27
35
|
}
|
|
28
36
|
export declare function SelectList(props: ISelectListProps): React.JSX.Element;
|