@univerjs/design 0.4.2 → 0.5.0-beta.0
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 +31 -21
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +16204 -16374
- package/lib/es/locale/en-US.js +167 -0
- package/lib/es/locale/fa-IR.js +167 -0
- package/lib/es/locale/ru-RU.js +461 -0
- package/lib/es/locale/vi-VN.js +447 -0
- package/lib/es/locale/zh-CN.js +451 -0
- package/lib/es/locale/zh-TW.js +453 -0
- package/lib/index.css +1 -1
- package/lib/types/components/date-picker/DatePanel.d.ts +3 -3
- package/lib/types/components/date-picker/DatePicker.d.ts +5 -5
- package/lib/types/components/date-range-picker/DateRangePicker.d.ts +4 -4
- package/lib/types/components/draggable-list/DraggableList.d.ts +1 -0
- package/lib/types/components/input-number/InputNumber.d.ts +11 -1
- package/lib/types/components/popup/index.d.ts +0 -1
- package/lib/types/components/tree/Tree.d.ts +14 -19
- package/lib/types/components/tree/util.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/umd/index.js +31 -21
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +31 -23
- package/lib/locale/en-US.json +0 -71
- package/lib/locale/fa-IR.json +0 -71
- package/lib/locale/ru-RU.json +0 -93
- package/lib/locale/vi-VN.json +0 -131
- package/lib/locale/zh-CN.json +0 -131
- package/lib/locale/zh-TW.json +0 -131
- package/lib/types/components/popup/RectPopup.d.ts +0 -44
package/lib/locale/zh-CN.json
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"design": {
|
|
3
|
-
"Confirm": {
|
|
4
|
-
"cancel": "取消",
|
|
5
|
-
"confirm": "确定"
|
|
6
|
-
},
|
|
7
|
-
"Slider": {
|
|
8
|
-
"resetTo": "恢复至"
|
|
9
|
-
},
|
|
10
|
-
"Picker": {
|
|
11
|
-
"name": "zh",
|
|
12
|
-
"weekdays": [
|
|
13
|
-
"星期日",
|
|
14
|
-
"星期一",
|
|
15
|
-
"星期二",
|
|
16
|
-
"星期三",
|
|
17
|
-
"星期四",
|
|
18
|
-
"星期五",
|
|
19
|
-
"星期六"
|
|
20
|
-
],
|
|
21
|
-
"weekdaysShort": [
|
|
22
|
-
"周日",
|
|
23
|
-
"周一",
|
|
24
|
-
"周二",
|
|
25
|
-
"周三",
|
|
26
|
-
"周四",
|
|
27
|
-
"周五",
|
|
28
|
-
"周六"
|
|
29
|
-
],
|
|
30
|
-
"weekdaysMin": [
|
|
31
|
-
"日",
|
|
32
|
-
"一",
|
|
33
|
-
"二",
|
|
34
|
-
"三",
|
|
35
|
-
"四",
|
|
36
|
-
"五",
|
|
37
|
-
"六"
|
|
38
|
-
],
|
|
39
|
-
"months": [
|
|
40
|
-
"一月",
|
|
41
|
-
"二月",
|
|
42
|
-
"三月",
|
|
43
|
-
"四月",
|
|
44
|
-
"五月",
|
|
45
|
-
"六月",
|
|
46
|
-
"七月",
|
|
47
|
-
"八月",
|
|
48
|
-
"九月",
|
|
49
|
-
"十月",
|
|
50
|
-
"十一月",
|
|
51
|
-
"十二月"
|
|
52
|
-
],
|
|
53
|
-
"monthsShort": [
|
|
54
|
-
"1月",
|
|
55
|
-
"2月",
|
|
56
|
-
"3月",
|
|
57
|
-
"4月",
|
|
58
|
-
"5月",
|
|
59
|
-
"6月",
|
|
60
|
-
"7月",
|
|
61
|
-
"8月",
|
|
62
|
-
"9月",
|
|
63
|
-
"10月",
|
|
64
|
-
"11月",
|
|
65
|
-
"12月"
|
|
66
|
-
],
|
|
67
|
-
"weekStart": 1,
|
|
68
|
-
"yearStart": 4,
|
|
69
|
-
"formats": {
|
|
70
|
-
"LT": "HH:mm",
|
|
71
|
-
"LTS": "HH:mm:ss",
|
|
72
|
-
"L": "YYYY/MM/DD",
|
|
73
|
-
"LL": "YYYY年M月D日",
|
|
74
|
-
"LLL": "YYYY年M月D日Ah点mm分",
|
|
75
|
-
"LLLL": "YYYY年M月D日ddddAh点mm分",
|
|
76
|
-
"l": "YYYY/M/D",
|
|
77
|
-
"ll": "YYYY年M月D日",
|
|
78
|
-
"lll": "YYYY年M月D日 HH:mm",
|
|
79
|
-
"llll": "YYYY年M月D日dddd HH:mm"
|
|
80
|
-
},
|
|
81
|
-
"relativeTime": {
|
|
82
|
-
"future": "%s后",
|
|
83
|
-
"past": "%s前",
|
|
84
|
-
"s": "几秒",
|
|
85
|
-
"m": "1 分钟",
|
|
86
|
-
"mm": "%d 分钟",
|
|
87
|
-
"h": "1 小时",
|
|
88
|
-
"hh": "%d 小时",
|
|
89
|
-
"d": "1 天",
|
|
90
|
-
"dd": "%d 天",
|
|
91
|
-
"M": "1 个月",
|
|
92
|
-
"MM": "%d 个月",
|
|
93
|
-
"y": "1 年",
|
|
94
|
-
"yy": "%d 年"
|
|
95
|
-
},
|
|
96
|
-
"yearFormat": "YYYY年",
|
|
97
|
-
"dayFormat": "D",
|
|
98
|
-
"cellMeridiemFormat": "A",
|
|
99
|
-
"monthBeforeYear": false,
|
|
100
|
-
"locale": "zh_CN",
|
|
101
|
-
"today": "今天",
|
|
102
|
-
"now": "此刻",
|
|
103
|
-
"backToToday": "返回今天",
|
|
104
|
-
"ok": "确定",
|
|
105
|
-
"timeSelect": "选择时间",
|
|
106
|
-
"dateSelect": "选择日期",
|
|
107
|
-
"weekSelect": "选择周",
|
|
108
|
-
"clear": "清除",
|
|
109
|
-
"month": "月",
|
|
110
|
-
"year": "年",
|
|
111
|
-
"previousMonth": "上个月 (翻页上键)",
|
|
112
|
-
"nextMonth": "下个月 (翻页下键)",
|
|
113
|
-
"monthSelect": "选择月份",
|
|
114
|
-
"yearSelect": "选择年份",
|
|
115
|
-
"decadeSelect": "选择年代",
|
|
116
|
-
"previousYear": "上一年 (Control键加左方向键)",
|
|
117
|
-
"nextYear": "下一年 (Control键加右方向键)",
|
|
118
|
-
"previousDecade": "上一年代",
|
|
119
|
-
"nextDecade": "下一年代",
|
|
120
|
-
"previousCentury": "上一世纪",
|
|
121
|
-
"nextCentury": "下一世纪",
|
|
122
|
-
"cellDateFormat": "D"
|
|
123
|
-
},
|
|
124
|
-
"CascaderList": {
|
|
125
|
-
"empty": "无"
|
|
126
|
-
},
|
|
127
|
-
"Select": {
|
|
128
|
-
"empty": "无"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
package/lib/locale/zh-TW.json
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"design": {
|
|
3
|
-
"Confirm": {
|
|
4
|
-
"cancel": "取消",
|
|
5
|
-
"confirm": "確定"
|
|
6
|
-
},
|
|
7
|
-
"Slider": {
|
|
8
|
-
"resetTo": "恢復至"
|
|
9
|
-
},
|
|
10
|
-
"Picker": {
|
|
11
|
-
"name": "zh-tw",
|
|
12
|
-
"weekdays": [
|
|
13
|
-
"星期日",
|
|
14
|
-
"星期一",
|
|
15
|
-
"星期二",
|
|
16
|
-
"星期三",
|
|
17
|
-
"星期四",
|
|
18
|
-
"星期五",
|
|
19
|
-
"星期六"
|
|
20
|
-
],
|
|
21
|
-
"weekdaysShort": [
|
|
22
|
-
"週日",
|
|
23
|
-
"週一",
|
|
24
|
-
"週二",
|
|
25
|
-
"週三",
|
|
26
|
-
"週四",
|
|
27
|
-
"週五",
|
|
28
|
-
"週六"
|
|
29
|
-
],
|
|
30
|
-
"weekdaysMin": [
|
|
31
|
-
"日",
|
|
32
|
-
"一",
|
|
33
|
-
"二",
|
|
34
|
-
"三",
|
|
35
|
-
"四",
|
|
36
|
-
"五",
|
|
37
|
-
"六"
|
|
38
|
-
],
|
|
39
|
-
"months": [
|
|
40
|
-
"一月",
|
|
41
|
-
"二月",
|
|
42
|
-
"三月",
|
|
43
|
-
"四月",
|
|
44
|
-
"五月",
|
|
45
|
-
"六月",
|
|
46
|
-
"七月",
|
|
47
|
-
"八月",
|
|
48
|
-
"九月",
|
|
49
|
-
"十月",
|
|
50
|
-
"十一月",
|
|
51
|
-
"十二月"
|
|
52
|
-
],
|
|
53
|
-
"monthsShort": [
|
|
54
|
-
"1月",
|
|
55
|
-
"2月",
|
|
56
|
-
"3月",
|
|
57
|
-
"4月",
|
|
58
|
-
"5月",
|
|
59
|
-
"6月",
|
|
60
|
-
"7月",
|
|
61
|
-
"8月",
|
|
62
|
-
"9月",
|
|
63
|
-
"10月",
|
|
64
|
-
"11月",
|
|
65
|
-
"12月"
|
|
66
|
-
],
|
|
67
|
-
"formats": {
|
|
68
|
-
"LT": "HH:mm",
|
|
69
|
-
"LTS": "HH:mm:ss",
|
|
70
|
-
"L": "YYYY/MM/DD",
|
|
71
|
-
"LL": "YYYY年M月D日",
|
|
72
|
-
"LLL": "YYYY年M月D日 HH:mm",
|
|
73
|
-
"LLLL": "YYYY年M月D日dddd HH:mm",
|
|
74
|
-
"l": "YYYY/M/D",
|
|
75
|
-
"ll": "YYYY年M月D日",
|
|
76
|
-
"lll": "YYYY年M月D日 HH:mm",
|
|
77
|
-
"llll": "YYYY年M月D日dddd HH:mm"
|
|
78
|
-
},
|
|
79
|
-
"relativeTime": {
|
|
80
|
-
"future": "%s內",
|
|
81
|
-
"past": "%s前",
|
|
82
|
-
"s": "幾秒",
|
|
83
|
-
"m": "1 分鐘",
|
|
84
|
-
"mm": "%d 分鐘",
|
|
85
|
-
"h": "1 小時",
|
|
86
|
-
"hh": "%d 小時",
|
|
87
|
-
"d": "1 天",
|
|
88
|
-
"dd": "%d 天",
|
|
89
|
-
"M": "1 個月",
|
|
90
|
-
"MM": "%d 個月",
|
|
91
|
-
"y": "1 年",
|
|
92
|
-
"yy": "%d 年"
|
|
93
|
-
},
|
|
94
|
-
"yearFormat": "YYYY年",
|
|
95
|
-
"dayFormat": "D",
|
|
96
|
-
"cellMeridiemFormat": "A",
|
|
97
|
-
"monthBeforeYear": false,
|
|
98
|
-
"locale": "zh_TW",
|
|
99
|
-
"today": "今天",
|
|
100
|
-
"now": "此刻",
|
|
101
|
-
"backToToday": "返回今天",
|
|
102
|
-
"ok": "確定",
|
|
103
|
-
"timeSelect": "選擇時間",
|
|
104
|
-
"dateSelect": "選擇日期",
|
|
105
|
-
"weekSelect": "選擇周",
|
|
106
|
-
"clear": "清除",
|
|
107
|
-
"month": "月",
|
|
108
|
-
"year": "年",
|
|
109
|
-
"previousMonth": "上個月 (翻頁上鍵)",
|
|
110
|
-
"nextMonth": "下個月 (翻頁下鍵)",
|
|
111
|
-
"monthSelect": "選擇月份",
|
|
112
|
-
"yearSelect": "選擇年份",
|
|
113
|
-
"decadeSelect": "選擇年代",
|
|
114
|
-
"dateFormat": "YYYY年M月D日",
|
|
115
|
-
"dateTimeFormat": "YYYY年M月D日 HH時mm分ss秒",
|
|
116
|
-
"previousYear": "上一年 (Control鍵加左方向鍵)",
|
|
117
|
-
"nextYear": "下一年 (Control鍵加右方向鍵)",
|
|
118
|
-
"previousDecade": "上一年代",
|
|
119
|
-
"nextDecade": "下一年代",
|
|
120
|
-
"previousCentury": "上一世紀",
|
|
121
|
-
"nextCentury": "下一世紀",
|
|
122
|
-
"cellDateFormat": "D"
|
|
123
|
-
},
|
|
124
|
-
"CascaderList": {
|
|
125
|
-
"empty": "無"
|
|
126
|
-
},
|
|
127
|
-
"Select": {
|
|
128
|
-
"empty": "無"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface IAbsolutePosition {
|
|
3
|
-
left: number;
|
|
4
|
-
right: number;
|
|
5
|
-
top: number;
|
|
6
|
-
bottom: number;
|
|
7
|
-
}
|
|
8
|
-
export interface IRectPopupProps {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* the anchor element bounding rect
|
|
12
|
-
*/
|
|
13
|
-
anchorRect: IAbsolutePosition;
|
|
14
|
-
excludeRects?: IAbsolutePosition[];
|
|
15
|
-
direction?: 'vertical' | 'horizontal' | 'left' | 'top' | 'right' | 'left' | 'bottom' | 'bottom-center' | 'top-center';
|
|
16
|
-
hidden?: boolean;
|
|
17
|
-
onClickOutside?: (e: MouseEvent) => void;
|
|
18
|
-
excludeOutside?: HTMLElement[];
|
|
19
|
-
onContextMenu?: () => void;
|
|
20
|
-
onPointerEnter?: (e: React.PointerEvent<HTMLElement>) => void;
|
|
21
|
-
onPointerLeave?: (e: React.PointerEvent<HTMLElement>) => void;
|
|
22
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
23
|
-
}
|
|
24
|
-
export interface IPopupLayoutInfo extends Pick<IRectPopupProps, 'direction'> {
|
|
25
|
-
position: IAbsolutePosition;
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
containerWidth: number;
|
|
29
|
-
containerHeight: number;
|
|
30
|
-
}
|
|
31
|
-
declare function RectPopup(props: IRectPopupProps): React.JSX.Element;
|
|
32
|
-
declare namespace RectPopup {
|
|
33
|
-
var calcPopupPosition: (layout: IPopupLayoutInfo) => {
|
|
34
|
-
top: number;
|
|
35
|
-
left: number;
|
|
36
|
-
};
|
|
37
|
-
var useContext: () => {
|
|
38
|
-
top: number;
|
|
39
|
-
bottom: number;
|
|
40
|
-
left: number;
|
|
41
|
-
right: number;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export { RectPopup };
|