@cloudtower/eagle 0.24.9 → 0.24.14
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/dist/antd/dist/antd.less +2 -0
- package/dist/antd/es/locale/ar_EG.d.ts +3 -0
- package/dist/antd/es/locale/ar_EG.js +116 -0
- package/dist/antd/es/locale/az_AZ.d.ts +3 -0
- package/dist/antd/es/locale/az_AZ.js +45 -0
- package/dist/antd/es/locale/bg_BG.d.ts +3 -0
- package/dist/antd/es/locale/bg_BG.js +43 -0
- package/dist/antd/es/locale/ca_ES.d.ts +3 -0
- package/dist/antd/es/locale/ca_ES.js +124 -0
- package/dist/antd/es/locale/cs_CZ.d.ts +3 -0
- package/dist/antd/es/locale/cs_CZ.js +54 -0
- package/dist/antd/es/locale/da_DK.d.ts +3 -0
- package/dist/antd/es/locale/da_DK.js +43 -0
- package/dist/antd/es/locale/de_DE.d.ts +3 -0
- package/dist/antd/es/locale/de_DE.js +113 -0
- package/dist/antd/es/locale/default.d.ts +3 -0
- package/dist/antd/es/locale/default.js +124 -0
- package/dist/antd/es/locale/el_GR.d.ts +3 -0
- package/dist/antd/es/locale/el_GR.js +43 -0
- package/dist/antd/es/locale/en_GB.d.ts +3 -0
- package/dist/antd/es/locale/en_GB.js +94 -0
- package/dist/antd/es/locale/en_US.d.ts +2 -0
- package/dist/antd/es/locale/en_US.js +2 -0
- package/dist/antd/es/locale/es_ES.d.ts +3 -0
- package/dist/antd/es/locale/es_ES.js +110 -0
- package/dist/antd/es/locale/et_EE.d.ts +3 -0
- package/dist/antd/es/locale/et_EE.js +43 -0
- package/dist/antd/es/locale/fa_IR.d.ts +3 -0
- package/dist/antd/es/locale/fa_IR.js +114 -0
- package/dist/antd/es/locale/fi_FI.d.ts +3 -0
- package/dist/antd/es/locale/fi_FI.js +50 -0
- package/dist/antd/es/locale/fr_BE.d.ts +3 -0
- package/dist/antd/es/locale/fr_BE.js +47 -0
- package/dist/antd/es/locale/fr_FR.d.ts +3 -0
- package/dist/antd/es/locale/fr_FR.js +59 -0
- package/dist/antd/es/locale/ga_IE.d.ts +3 -0
- package/dist/antd/es/locale/ga_IE.js +123 -0
- package/dist/antd/es/locale/he_IL.d.ts +3 -0
- package/dist/antd/es/locale/he_IL.js +116 -0
- package/dist/antd/es/locale/hi_IN.d.ts +3 -0
- package/dist/antd/es/locale/hi_IN.js +51 -0
- package/dist/antd/es/locale/hr_HR.d.ts +3 -0
- package/dist/antd/es/locale/hr_HR.js +57 -0
- package/dist/antd/es/locale/hu_HU.d.ts +3 -0
- package/dist/antd/es/locale/hu_HU.js +44 -0
- package/dist/antd/es/locale/hy_AM.d.ts +3 -0
- package/dist/antd/es/locale/hy_AM.js +109 -0
- package/dist/antd/es/locale/id_ID.d.ts +3 -0
- package/dist/antd/es/locale/id_ID.js +45 -0
- package/dist/antd/es/locale/is_IS.d.ts +3 -0
- package/dist/antd/es/locale/is_IS.js +43 -0
- package/dist/antd/es/locale/it_IT.d.ts +3 -0
- package/dist/antd/es/locale/it_IT.js +59 -0
- package/dist/antd/es/locale/ja_JP.d.ts +3 -0
- package/dist/antd/es/locale/ja_JP.js +94 -0
- package/dist/antd/es/locale/kn_IN.d.ts +3 -0
- package/dist/antd/es/locale/kn_IN.js +51 -0
- package/dist/antd/es/locale/ko_KR.d.ts +3 -0
- package/dist/antd/es/locale/ko_KR.js +94 -0
- package/dist/antd/es/locale/ku_IQ.d.ts +3 -0
- package/dist/antd/es/locale/ku_IQ.js +43 -0
- package/dist/antd/es/locale/lv_LV.d.ts +3 -0
- package/dist/antd/es/locale/lv_LV.js +43 -0
- package/dist/antd/es/locale/mk_MK.d.ts +3 -0
- package/dist/antd/es/locale/mk_MK.js +58 -0
- package/dist/antd/es/locale/mn_MN.d.ts +3 -0
- package/dist/antd/es/locale/mn_MN.js +43 -0
- package/dist/antd/es/locale/ms_MY.d.ts +3 -0
- package/dist/antd/es/locale/ms_MY.js +63 -0
- package/dist/antd/es/locale/nb_NO.d.ts +3 -0
- package/dist/antd/es/locale/nb_NO.js +124 -0
- package/dist/antd/es/locale/ne_NP.d.ts +3 -0
- package/dist/antd/es/locale/ne_NP.js +44 -0
- package/dist/antd/es/locale/nl_BE.d.ts +3 -0
- package/dist/antd/es/locale/nl_BE.js +43 -0
- package/dist/antd/es/locale/nl_NL.d.ts +3 -0
- package/dist/antd/es/locale/nl_NL.js +62 -0
- package/dist/antd/es/locale/pl_PL.d.ts +3 -0
- package/dist/antd/es/locale/pl_PL.js +43 -0
- package/dist/antd/es/locale/pt_BR.d.ts +3 -0
- package/dist/antd/es/locale/pt_BR.js +116 -0
- package/dist/antd/es/locale/pt_PT.d.ts +3 -0
- package/dist/antd/es/locale/pt_PT.js +44 -0
- package/dist/antd/es/locale/ro_RO.d.ts +3 -0
- package/dist/antd/es/locale/ro_RO.js +62 -0
- package/dist/antd/es/locale/ru_RU.d.ts +3 -0
- package/dist/antd/es/locale/ru_RU.js +116 -0
- package/dist/antd/es/locale/sk_SK.d.ts +3 -0
- package/dist/antd/es/locale/sk_SK.js +62 -0
- package/dist/antd/es/locale/sl_SI.d.ts +3 -0
- package/dist/antd/es/locale/sl_SI.js +43 -0
- package/dist/antd/es/locale/sr_RS.d.ts +3 -0
- package/dist/antd/es/locale/sr_RS.js +43 -0
- package/dist/antd/es/locale/sv_SE.d.ts +3 -0
- package/dist/antd/es/locale/sv_SE.js +47 -0
- package/dist/antd/es/locale/ta_IN.d.ts +3 -0
- package/dist/antd/es/locale/ta_IN.js +63 -0
- package/dist/antd/es/locale/th_TH.d.ts +3 -0
- package/dist/antd/es/locale/th_TH.js +62 -0
- package/dist/antd/es/locale/tr_TR.d.ts +3 -0
- package/dist/antd/es/locale/tr_TR.js +124 -0
- package/dist/antd/es/locale/uk_UA.d.ts +3 -0
- package/dist/antd/es/locale/uk_UA.js +43 -0
- package/dist/antd/es/locale/vi_VN.d.ts +3 -0
- package/dist/antd/es/locale/vi_VN.js +43 -0
- package/dist/antd/es/locale/zh_CN.d.ts +3 -0
- package/dist/antd/es/locale/zh_CN.js +124 -0
- package/dist/antd/es/locale/zh_HK.d.ts +3 -0
- package/dist/antd/es/locale/zh_HK.js +117 -0
- package/dist/antd/es/locale/zh_TW.d.ts +3 -0
- package/dist/antd/es/locale/zh_TW.js +117 -0
- package/dist/antd/lib/style/color/bezierEasing.less +110 -0
- package/dist/antd/lib/style/color/colorPalette.less +81 -0
- package/dist/antd/lib/style/color/colors.less +162 -0
- package/dist/antd/lib/style/color/tinyColor.less +1184 -0
- package/dist/antd/lib/style/compact.less +2 -0
- package/dist/antd/lib/style/components.less +63 -0
- package/dist/antd/lib/style/core/base.less +17 -0
- package/dist/antd/lib/style/core/global.less +501 -0
- package/dist/antd/lib/style/core/iconfont.less +19 -0
- package/dist/antd/lib/style/core/index.less +5 -0
- package/dist/antd/lib/style/core/motion/fade.less +31 -0
- package/dist/antd/lib/style/core/motion/move.less +120 -0
- package/dist/antd/lib/style/core/motion/other.less +51 -0
- package/dist/antd/lib/style/core/motion/slide.less +120 -0
- package/dist/antd/lib/style/core/motion/zoom.less +162 -0
- package/dist/antd/lib/style/core/motion.less +19 -0
- package/dist/antd/lib/style/css.js +3 -0
- package/dist/antd/lib/style/dark.less +2 -0
- package/dist/antd/lib/style/index.css +2005 -0
- package/dist/antd/lib/style/index.d.ts +1 -0
- package/dist/antd/lib/style/index.js +3 -0
- package/dist/antd/lib/style/index.less +2 -0
- package/dist/antd/lib/style/mixins/clearfix.less +15 -0
- package/dist/antd/lib/style/mixins/compatibility.less +17 -0
- package/dist/antd/lib/style/mixins/customize.less +170 -0
- package/dist/antd/lib/style/mixins/iconfont.less +35 -0
- package/dist/antd/lib/style/mixins/index.less +11 -0
- package/dist/antd/lib/style/mixins/motion.less +35 -0
- package/dist/antd/lib/style/mixins/operation-unit.less +18 -0
- package/dist/antd/lib/style/mixins/reset.less +13 -0
- package/dist/antd/lib/style/mixins/size.less +10 -0
- package/dist/antd/lib/style/mixins/typography.less +49 -0
- package/dist/antd/lib/style/themes/compact.less +299 -0
- package/dist/antd/lib/style/themes/dark.less +431 -0
- package/dist/antd/lib/style/themes/default.less +989 -0
- package/dist/antd/lib/style/themes/index.less +1 -0
- package/dist/components.css +737 -737
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/spec/base.d.ts +5 -9
- package/dist/style.css +283 -283
- package/dist/umd/stats1.html +1 -1
- package/package.json +10 -6
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Pagination from "rc-pagination/es/locale/vi_VN";
|
|
2
|
+
import DatePicker from '../date-picker/locale/vi_VN';
|
|
3
|
+
import TimePicker from '../time-picker/locale/vi_VN';
|
|
4
|
+
import Calendar from '../calendar/locale/vi_VN';
|
|
5
|
+
var localeValues = {
|
|
6
|
+
locale: 'vi',
|
|
7
|
+
Pagination: Pagination,
|
|
8
|
+
DatePicker: DatePicker,
|
|
9
|
+
TimePicker: TimePicker,
|
|
10
|
+
Calendar: Calendar,
|
|
11
|
+
Table: {
|
|
12
|
+
filterTitle: 'Bộ ',
|
|
13
|
+
filterConfirm: 'OK',
|
|
14
|
+
filterReset: 'Tạo Lại',
|
|
15
|
+
selectAll: 'Chọn Tất Cả',
|
|
16
|
+
selectInvert: 'Chọn Ngược Lại'
|
|
17
|
+
},
|
|
18
|
+
Modal: {
|
|
19
|
+
okText: 'OK',
|
|
20
|
+
cancelText: 'Huỷ',
|
|
21
|
+
justOkText: 'OK'
|
|
22
|
+
},
|
|
23
|
+
Popconfirm: {
|
|
24
|
+
okText: 'OK',
|
|
25
|
+
cancelText: 'Huỷ'
|
|
26
|
+
},
|
|
27
|
+
Transfer: {
|
|
28
|
+
searchPlaceholder: 'Tìm ở đây',
|
|
29
|
+
itemUnit: 'mục',
|
|
30
|
+
itemsUnit: 'mục'
|
|
31
|
+
},
|
|
32
|
+
Upload: {
|
|
33
|
+
uploading: 'Đang tải lên...',
|
|
34
|
+
removeFile: 'Gỡ bỏ tập tin',
|
|
35
|
+
uploadError: 'Lỗi tải lên',
|
|
36
|
+
previewFile: 'Xem thử tập tin',
|
|
37
|
+
downloadFile: 'Tải tập tin'
|
|
38
|
+
},
|
|
39
|
+
Empty: {
|
|
40
|
+
description: 'Trống'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export default localeValues;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
import Pagination from "rc-pagination/es/locale/zh_CN";
|
|
3
|
+
import DatePicker from '../date-picker/locale/zh_CN';
|
|
4
|
+
import TimePicker from '../time-picker/locale/zh_CN';
|
|
5
|
+
import Calendar from '../calendar/locale/zh_CN';
|
|
6
|
+
var typeTemplate = '${label}不是一个有效的${type}';
|
|
7
|
+
var localeValues = {
|
|
8
|
+
locale: 'zh-cn',
|
|
9
|
+
Pagination: Pagination,
|
|
10
|
+
DatePicker: DatePicker,
|
|
11
|
+
TimePicker: TimePicker,
|
|
12
|
+
Calendar: Calendar,
|
|
13
|
+
// locales for all comoponents
|
|
14
|
+
global: {
|
|
15
|
+
placeholder: '请选择'
|
|
16
|
+
},
|
|
17
|
+
Table: {
|
|
18
|
+
filterTitle: '筛选',
|
|
19
|
+
filterConfirm: '确定',
|
|
20
|
+
filterReset: '重置',
|
|
21
|
+
filterEmptyText: '无筛选项',
|
|
22
|
+
selectAll: '全选当页',
|
|
23
|
+
selectInvert: '反选当页',
|
|
24
|
+
selectionAll: '全选所有',
|
|
25
|
+
sortTitle: '排序',
|
|
26
|
+
expand: '展开行',
|
|
27
|
+
collapse: '关闭行',
|
|
28
|
+
triggerDesc: '点击降序',
|
|
29
|
+
triggerAsc: '点击升序',
|
|
30
|
+
cancelSort: '取消排序'
|
|
31
|
+
},
|
|
32
|
+
Modal: {
|
|
33
|
+
okText: '确定',
|
|
34
|
+
cancelText: '取消',
|
|
35
|
+
justOkText: '知道了'
|
|
36
|
+
},
|
|
37
|
+
Popconfirm: {
|
|
38
|
+
cancelText: '取消',
|
|
39
|
+
okText: '确定'
|
|
40
|
+
},
|
|
41
|
+
Transfer: {
|
|
42
|
+
searchPlaceholder: '请输入搜索内容',
|
|
43
|
+
itemUnit: '项',
|
|
44
|
+
itemsUnit: '项',
|
|
45
|
+
remove: '删除',
|
|
46
|
+
selectCurrent: '全选当页',
|
|
47
|
+
removeCurrent: '删除当页',
|
|
48
|
+
selectAll: '全选所有',
|
|
49
|
+
removeAll: '删除全部',
|
|
50
|
+
selectInvert: '反选当页'
|
|
51
|
+
},
|
|
52
|
+
Upload: {
|
|
53
|
+
uploading: '文件上传中',
|
|
54
|
+
removeFile: '删除文件',
|
|
55
|
+
uploadError: '上传错误',
|
|
56
|
+
previewFile: '预览文件',
|
|
57
|
+
downloadFile: '下载文件'
|
|
58
|
+
},
|
|
59
|
+
Empty: {
|
|
60
|
+
description: '暂无数据'
|
|
61
|
+
},
|
|
62
|
+
Icon: {
|
|
63
|
+
icon: '图标'
|
|
64
|
+
},
|
|
65
|
+
Text: {
|
|
66
|
+
edit: '编辑',
|
|
67
|
+
copy: '复制',
|
|
68
|
+
copied: '复制成功',
|
|
69
|
+
expand: '展开'
|
|
70
|
+
},
|
|
71
|
+
PageHeader: {
|
|
72
|
+
back: '返回'
|
|
73
|
+
},
|
|
74
|
+
Form: {
|
|
75
|
+
defaultValidateMessages: {
|
|
76
|
+
"default": '字段验证错误${label}',
|
|
77
|
+
required: '请输入${label}',
|
|
78
|
+
"enum": '${label}必须是其中一个[${enum}]',
|
|
79
|
+
whitespace: '${label}不能为空字符',
|
|
80
|
+
date: {
|
|
81
|
+
format: '${label}日期格式无效',
|
|
82
|
+
parse: '${label}不能转换为日期',
|
|
83
|
+
invalid: '${label}是一个无效日期'
|
|
84
|
+
},
|
|
85
|
+
types: {
|
|
86
|
+
string: typeTemplate,
|
|
87
|
+
method: typeTemplate,
|
|
88
|
+
array: typeTemplate,
|
|
89
|
+
object: typeTemplate,
|
|
90
|
+
number: typeTemplate,
|
|
91
|
+
date: typeTemplate,
|
|
92
|
+
"boolean": typeTemplate,
|
|
93
|
+
integer: typeTemplate,
|
|
94
|
+
"float": typeTemplate,
|
|
95
|
+
regexp: typeTemplate,
|
|
96
|
+
email: typeTemplate,
|
|
97
|
+
url: typeTemplate,
|
|
98
|
+
hex: typeTemplate
|
|
99
|
+
},
|
|
100
|
+
string: {
|
|
101
|
+
len: '${label}须为${len}个字符',
|
|
102
|
+
min: '${label}最少${min}个字符',
|
|
103
|
+
max: '${label}最多${max}个字符',
|
|
104
|
+
range: '${label}须在${min}-${max}字符之间'
|
|
105
|
+
},
|
|
106
|
+
number: {
|
|
107
|
+
len: '${label}必须等于${len}',
|
|
108
|
+
min: '${label}最小值为${min}',
|
|
109
|
+
max: '${label}最大值为${max}',
|
|
110
|
+
range: '${label}须在${min}-${max}之间'
|
|
111
|
+
},
|
|
112
|
+
array: {
|
|
113
|
+
len: '须为${len}个${label}',
|
|
114
|
+
min: '最少${min}个${label}',
|
|
115
|
+
max: '最多${max}个${label}',
|
|
116
|
+
range: '${label}数量须在${min}-${max}之间'
|
|
117
|
+
},
|
|
118
|
+
pattern: {
|
|
119
|
+
mismatch: '${label}与模式不匹配${pattern}'
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
export default localeValues;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
import Pagination from "rc-pagination/es/locale/zh_TW";
|
|
3
|
+
import DatePicker from '../date-picker/locale/zh_TW';
|
|
4
|
+
import TimePicker from '../time-picker/locale/zh_TW';
|
|
5
|
+
import Calendar from '../calendar/locale/zh_TW';
|
|
6
|
+
var typeTemplate = '${label}不是一個有效的${type}';
|
|
7
|
+
var localeValues = {
|
|
8
|
+
locale: 'zh-hk',
|
|
9
|
+
Pagination: Pagination,
|
|
10
|
+
DatePicker: DatePicker,
|
|
11
|
+
TimePicker: TimePicker,
|
|
12
|
+
Calendar: Calendar,
|
|
13
|
+
global: {
|
|
14
|
+
placeholder: '請選擇'
|
|
15
|
+
},
|
|
16
|
+
Table: {
|
|
17
|
+
filterTitle: '篩選器',
|
|
18
|
+
filterConfirm: '確定',
|
|
19
|
+
filterReset: '重置',
|
|
20
|
+
filterEmptyText: '無篩選項',
|
|
21
|
+
selectAll: '全部選取',
|
|
22
|
+
selectInvert: '反向選取',
|
|
23
|
+
selectionAll: '全選所有',
|
|
24
|
+
sortTitle: '排序',
|
|
25
|
+
expand: '展開行',
|
|
26
|
+
collapse: '關閉行',
|
|
27
|
+
triggerDesc: '點擊降序',
|
|
28
|
+
triggerAsc: '點擊升序',
|
|
29
|
+
cancelSort: '取消排序'
|
|
30
|
+
},
|
|
31
|
+
Modal: {
|
|
32
|
+
okText: '確定',
|
|
33
|
+
cancelText: '取消',
|
|
34
|
+
justOkText: '知道了'
|
|
35
|
+
},
|
|
36
|
+
Popconfirm: {
|
|
37
|
+
okText: '確定',
|
|
38
|
+
cancelText: '取消'
|
|
39
|
+
},
|
|
40
|
+
Transfer: {
|
|
41
|
+
searchPlaceholder: '搜尋資料',
|
|
42
|
+
itemUnit: '項目',
|
|
43
|
+
itemsUnit: '項目'
|
|
44
|
+
},
|
|
45
|
+
Upload: {
|
|
46
|
+
uploading: '正在上傳...',
|
|
47
|
+
removeFile: '刪除檔案',
|
|
48
|
+
uploadError: '上傳失敗',
|
|
49
|
+
previewFile: '檔案預覽',
|
|
50
|
+
downloadFile: '下载文件'
|
|
51
|
+
},
|
|
52
|
+
Empty: {
|
|
53
|
+
description: '無此資料'
|
|
54
|
+
},
|
|
55
|
+
Icon: {
|
|
56
|
+
icon: '圖標'
|
|
57
|
+
},
|
|
58
|
+
Text: {
|
|
59
|
+
edit: '編輯',
|
|
60
|
+
copy: '複製',
|
|
61
|
+
copied: '複製成功',
|
|
62
|
+
expand: '展開'
|
|
63
|
+
},
|
|
64
|
+
PageHeader: {
|
|
65
|
+
back: '返回'
|
|
66
|
+
},
|
|
67
|
+
Form: {
|
|
68
|
+
defaultValidateMessages: {
|
|
69
|
+
"default": '字段驗證錯誤${label}',
|
|
70
|
+
required: '請輸入${label}',
|
|
71
|
+
"enum": '${label}必須是其中一個[${enum}]',
|
|
72
|
+
whitespace: '${label}不能為空字符',
|
|
73
|
+
date: {
|
|
74
|
+
format: '${label}日期格式無效',
|
|
75
|
+
parse: '${label}不能轉換為日期',
|
|
76
|
+
invalid: '${label}是一個無效日期'
|
|
77
|
+
},
|
|
78
|
+
types: {
|
|
79
|
+
string: typeTemplate,
|
|
80
|
+
method: typeTemplate,
|
|
81
|
+
array: typeTemplate,
|
|
82
|
+
object: typeTemplate,
|
|
83
|
+
number: typeTemplate,
|
|
84
|
+
date: typeTemplate,
|
|
85
|
+
"boolean": typeTemplate,
|
|
86
|
+
integer: typeTemplate,
|
|
87
|
+
"float": typeTemplate,
|
|
88
|
+
regexp: typeTemplate,
|
|
89
|
+
email: typeTemplate,
|
|
90
|
+
url: typeTemplate,
|
|
91
|
+
hex: typeTemplate
|
|
92
|
+
},
|
|
93
|
+
string: {
|
|
94
|
+
len: '${label}須為${len}個字符',
|
|
95
|
+
min: '${label}最少${min}個字符',
|
|
96
|
+
max: '${label}最多${max}個字符',
|
|
97
|
+
range: '${label}須在${min}-${max}字符之間'
|
|
98
|
+
},
|
|
99
|
+
number: {
|
|
100
|
+
len: '${label}必須等於${len}',
|
|
101
|
+
min: '${label}最小值為${min}',
|
|
102
|
+
max: '${label}最大值為${max}',
|
|
103
|
+
range: '${label}須在${min}-${max}之間'
|
|
104
|
+
},
|
|
105
|
+
array: {
|
|
106
|
+
len: '須為${len}個${label}',
|
|
107
|
+
min: '最少${min}個${label}',
|
|
108
|
+
max: '最多${max}個${label}',
|
|
109
|
+
range: '${label}數量須在${min}-${max}之間'
|
|
110
|
+
},
|
|
111
|
+
pattern: {
|
|
112
|
+
mismatch: '${label}與模式不匹配${pattern}'
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
export default localeValues;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
import Pagination from "rc-pagination/es/locale/zh_TW";
|
|
3
|
+
import DatePicker from '../date-picker/locale/zh_TW';
|
|
4
|
+
import TimePicker from '../time-picker/locale/zh_TW';
|
|
5
|
+
import Calendar from '../calendar/locale/zh_TW';
|
|
6
|
+
var typeTemplate = '${label}不是一個有效的${type}';
|
|
7
|
+
var localeValues = {
|
|
8
|
+
locale: 'zh-tw',
|
|
9
|
+
Pagination: Pagination,
|
|
10
|
+
DatePicker: DatePicker,
|
|
11
|
+
TimePicker: TimePicker,
|
|
12
|
+
Calendar: Calendar,
|
|
13
|
+
global: {
|
|
14
|
+
placeholder: '請選擇'
|
|
15
|
+
},
|
|
16
|
+
Table: {
|
|
17
|
+
filterTitle: '篩選器',
|
|
18
|
+
filterConfirm: '確定',
|
|
19
|
+
filterReset: '重置',
|
|
20
|
+
filterEmptyText: '無篩選項',
|
|
21
|
+
selectAll: '全部選取',
|
|
22
|
+
selectInvert: '反向選取',
|
|
23
|
+
selectionAll: '全選所有',
|
|
24
|
+
sortTitle: '排序',
|
|
25
|
+
expand: '展開行',
|
|
26
|
+
collapse: '關閉行',
|
|
27
|
+
triggerDesc: '點擊降序',
|
|
28
|
+
triggerAsc: '點擊升序',
|
|
29
|
+
cancelSort: '取消排序'
|
|
30
|
+
},
|
|
31
|
+
Modal: {
|
|
32
|
+
okText: '確定',
|
|
33
|
+
cancelText: '取消',
|
|
34
|
+
justOkText: '知道了'
|
|
35
|
+
},
|
|
36
|
+
Popconfirm: {
|
|
37
|
+
okText: '確定',
|
|
38
|
+
cancelText: '取消'
|
|
39
|
+
},
|
|
40
|
+
Transfer: {
|
|
41
|
+
searchPlaceholder: '搜尋資料',
|
|
42
|
+
itemUnit: '項目',
|
|
43
|
+
itemsUnit: '項目'
|
|
44
|
+
},
|
|
45
|
+
Upload: {
|
|
46
|
+
uploading: '正在上傳...',
|
|
47
|
+
removeFile: '刪除檔案',
|
|
48
|
+
uploadError: '上傳失敗',
|
|
49
|
+
previewFile: '檔案預覽',
|
|
50
|
+
downloadFile: '下载文件'
|
|
51
|
+
},
|
|
52
|
+
Empty: {
|
|
53
|
+
description: '無此資料'
|
|
54
|
+
},
|
|
55
|
+
Icon: {
|
|
56
|
+
icon: '圖標'
|
|
57
|
+
},
|
|
58
|
+
Text: {
|
|
59
|
+
edit: '編輯',
|
|
60
|
+
copy: '複製',
|
|
61
|
+
copied: '複製成功',
|
|
62
|
+
expand: '展開'
|
|
63
|
+
},
|
|
64
|
+
PageHeader: {
|
|
65
|
+
back: '返回'
|
|
66
|
+
},
|
|
67
|
+
Form: {
|
|
68
|
+
defaultValidateMessages: {
|
|
69
|
+
"default": '字段驗證錯誤${label}',
|
|
70
|
+
required: '請輸入${label}',
|
|
71
|
+
"enum": '${label}必須是其中一個[${enum}]',
|
|
72
|
+
whitespace: '${label}不能為空字符',
|
|
73
|
+
date: {
|
|
74
|
+
format: '${label}日期格式無效',
|
|
75
|
+
parse: '${label}不能轉換為日期',
|
|
76
|
+
invalid: '${label}是一個無效日期'
|
|
77
|
+
},
|
|
78
|
+
types: {
|
|
79
|
+
string: typeTemplate,
|
|
80
|
+
method: typeTemplate,
|
|
81
|
+
array: typeTemplate,
|
|
82
|
+
object: typeTemplate,
|
|
83
|
+
number: typeTemplate,
|
|
84
|
+
date: typeTemplate,
|
|
85
|
+
"boolean": typeTemplate,
|
|
86
|
+
integer: typeTemplate,
|
|
87
|
+
"float": typeTemplate,
|
|
88
|
+
regexp: typeTemplate,
|
|
89
|
+
email: typeTemplate,
|
|
90
|
+
url: typeTemplate,
|
|
91
|
+
hex: typeTemplate
|
|
92
|
+
},
|
|
93
|
+
string: {
|
|
94
|
+
len: '${label}須為${len}個字符',
|
|
95
|
+
min: '${label}最少${min}個字符',
|
|
96
|
+
max: '${label}最多${max}個字符',
|
|
97
|
+
range: '${label}須在${min}-${max}字符之間'
|
|
98
|
+
},
|
|
99
|
+
number: {
|
|
100
|
+
len: '${label}必須等於${len}',
|
|
101
|
+
min: '${label}最小值為${min}',
|
|
102
|
+
max: '${label}最大值為${max}',
|
|
103
|
+
range: '${label}須在${min}-${max}之間'
|
|
104
|
+
},
|
|
105
|
+
array: {
|
|
106
|
+
len: '須為${len}個${label}',
|
|
107
|
+
min: '最少${min}個${label}',
|
|
108
|
+
max: '最多${max}個${label}',
|
|
109
|
+
range: '${label}數量須在${min}-${max}之間'
|
|
110
|
+
},
|
|
111
|
+
pattern: {
|
|
112
|
+
mismatch: '${label}與模式不匹配${pattern}'
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
export default localeValues;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
.bezierEasingMixin() {
|
|
3
|
+
@functions: ~`(function() {
|
|
4
|
+
var NEWTON_ITERATIONS = 4;
|
|
5
|
+
var NEWTON_MIN_SLOPE = 0.001;
|
|
6
|
+
var SUBDIVISION_PRECISION = 0.0000001;
|
|
7
|
+
var SUBDIVISION_MAX_ITERATIONS = 10;
|
|
8
|
+
|
|
9
|
+
var kSplineTableSize = 11;
|
|
10
|
+
var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);
|
|
11
|
+
|
|
12
|
+
var float32ArraySupported = typeof Float32Array === 'function';
|
|
13
|
+
|
|
14
|
+
function A (aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1; }
|
|
15
|
+
function B (aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1; }
|
|
16
|
+
function C (aA1) { return 3.0 * aA1; }
|
|
17
|
+
|
|
18
|
+
// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
|
|
19
|
+
function calcBezier (aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; }
|
|
20
|
+
|
|
21
|
+
// Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.
|
|
22
|
+
function getSlope (aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); }
|
|
23
|
+
|
|
24
|
+
function binarySubdivide (aX, aA, aB, mX1, mX2) {
|
|
25
|
+
var currentX, currentT, i = 0;
|
|
26
|
+
do {
|
|
27
|
+
currentT = aA + (aB - aA) / 2.0;
|
|
28
|
+
currentX = calcBezier(currentT, mX1, mX2) - aX;
|
|
29
|
+
if (currentX > 0.0) {
|
|
30
|
+
aB = currentT;
|
|
31
|
+
} else {
|
|
32
|
+
aA = currentT;
|
|
33
|
+
}
|
|
34
|
+
} while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
|
|
35
|
+
return currentT;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function newtonRaphsonIterate (aX, aGuessT, mX1, mX2) {
|
|
39
|
+
for (var i = 0; i < NEWTON_ITERATIONS; ++i) {
|
|
40
|
+
var currentSlope = getSlope(aGuessT, mX1, mX2);
|
|
41
|
+
if (currentSlope === 0.0) {
|
|
42
|
+
return aGuessT;
|
|
43
|
+
}
|
|
44
|
+
var currentX = calcBezier(aGuessT, mX1, mX2) - aX;
|
|
45
|
+
aGuessT -= currentX / currentSlope;
|
|
46
|
+
}
|
|
47
|
+
return aGuessT;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var BezierEasing = function (mX1, mY1, mX2, mY2) {
|
|
51
|
+
if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) {
|
|
52
|
+
throw new Error('bezier x values must be in [0, 1] range');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Precompute samples table
|
|
56
|
+
var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);
|
|
57
|
+
if (mX1 !== mY1 || mX2 !== mY2) {
|
|
58
|
+
for (var i = 0; i < kSplineTableSize; ++i) {
|
|
59
|
+
sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function getTForX (aX) {
|
|
64
|
+
var intervalStart = 0.0;
|
|
65
|
+
var currentSample = 1;
|
|
66
|
+
var lastSample = kSplineTableSize - 1;
|
|
67
|
+
|
|
68
|
+
for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {
|
|
69
|
+
intervalStart += kSampleStepSize;
|
|
70
|
+
}
|
|
71
|
+
--currentSample;
|
|
72
|
+
|
|
73
|
+
// Interpolate to provide an initial guess for t
|
|
74
|
+
var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);
|
|
75
|
+
var guessForT = intervalStart + dist * kSampleStepSize;
|
|
76
|
+
|
|
77
|
+
var initialSlope = getSlope(guessForT, mX1, mX2);
|
|
78
|
+
if (initialSlope >= NEWTON_MIN_SLOPE) {
|
|
79
|
+
return newtonRaphsonIterate(aX, guessForT, mX1, mX2);
|
|
80
|
+
} else if (initialSlope === 0.0) {
|
|
81
|
+
return guessForT;
|
|
82
|
+
} else {
|
|
83
|
+
return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return function BezierEasing (x) {
|
|
88
|
+
if (mX1 === mY1 && mX2 === mY2) {
|
|
89
|
+
return x; // linear
|
|
90
|
+
}
|
|
91
|
+
// Because JavaScript number are imprecise, we should guarantee the extremes are right.
|
|
92
|
+
if (x === 0) {
|
|
93
|
+
return 0;
|
|
94
|
+
}
|
|
95
|
+
if (x === 1) {
|
|
96
|
+
return 1;
|
|
97
|
+
}
|
|
98
|
+
return calcBezier(getTForX(x), mY1, mY2);
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
this.colorEasing = BezierEasing(0.26, 0.09, 0.37, 0.18);
|
|
103
|
+
// less 3 requires a return
|
|
104
|
+
return '';
|
|
105
|
+
})()`;
|
|
106
|
+
}
|
|
107
|
+
// It is hacky way to make this function will be compiled preferentially by less
|
|
108
|
+
// resolve error: `ReferenceError: colorPalette is not defined`
|
|
109
|
+
// https://github.com/ant-design/ant-motion/issues/44
|
|
110
|
+
.bezierEasingMixin();
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* stylelint-disable no-duplicate-selectors */
|
|
2
|
+
@import "bezierEasing";
|
|
3
|
+
@import "tinyColor";
|
|
4
|
+
|
|
5
|
+
// We create a very complex algorithm which take the place of original tint/shade color system
|
|
6
|
+
// to make sure no one can understand it 👻
|
|
7
|
+
// and create an entire color palette magicly by inputing just a single primary color.
|
|
8
|
+
// We are using bezier-curve easing function and some color manipulations like tint/shade/darken/spin
|
|
9
|
+
.colorPaletteMixin() {
|
|
10
|
+
@functions: ~`(function() {
|
|
11
|
+
var hueStep = 2;
|
|
12
|
+
var saturationStep = 0.16;
|
|
13
|
+
var saturationStep2 = 0.05;
|
|
14
|
+
var brightnessStep1 = 0.05;
|
|
15
|
+
var brightnessStep2 = 0.15;
|
|
16
|
+
var lightColorCount = 5;
|
|
17
|
+
var darkColorCount = 4;
|
|
18
|
+
|
|
19
|
+
var getHue = function(hsv, i, isLight) {
|
|
20
|
+
var hue;
|
|
21
|
+
if (hsv.h >= 60 && hsv.h <= 240) {
|
|
22
|
+
hue = isLight ? hsv.h - hueStep * i : hsv.h + hueStep * i;
|
|
23
|
+
} else {
|
|
24
|
+
hue = isLight ? hsv.h + hueStep * i : hsv.h - hueStep * i;
|
|
25
|
+
}
|
|
26
|
+
if (hue < 0) {
|
|
27
|
+
hue += 360;
|
|
28
|
+
} else if (hue >= 360) {
|
|
29
|
+
hue -= 360;
|
|
30
|
+
}
|
|
31
|
+
return Math.round(hue);
|
|
32
|
+
};
|
|
33
|
+
var getSaturation = function(hsv, i, isLight) {
|
|
34
|
+
var saturation;
|
|
35
|
+
if (isLight) {
|
|
36
|
+
saturation = hsv.s - saturationStep * i;
|
|
37
|
+
} else if (i === darkColorCount) {
|
|
38
|
+
saturation = hsv.s + saturationStep;
|
|
39
|
+
} else {
|
|
40
|
+
saturation = hsv.s + saturationStep2 * i;
|
|
41
|
+
}
|
|
42
|
+
if (saturation > 1) {
|
|
43
|
+
saturation = 1;
|
|
44
|
+
}
|
|
45
|
+
if (isLight && i === lightColorCount && saturation > 0.1) {
|
|
46
|
+
saturation = 0.1;
|
|
47
|
+
}
|
|
48
|
+
if (saturation < 0.06) {
|
|
49
|
+
saturation = 0.06;
|
|
50
|
+
}
|
|
51
|
+
return Number(saturation.toFixed(2));
|
|
52
|
+
};
|
|
53
|
+
var getValue = function(hsv, i, isLight) {
|
|
54
|
+
var value;
|
|
55
|
+
if (isLight) {
|
|
56
|
+
value = hsv.v + brightnessStep1 * i;
|
|
57
|
+
}else{
|
|
58
|
+
value = hsv.v - brightnessStep2 * i
|
|
59
|
+
}
|
|
60
|
+
if (value > 1) {
|
|
61
|
+
value = 1;
|
|
62
|
+
}
|
|
63
|
+
return Number(value.toFixed(2))
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
this.colorPalette = function(color, index) {
|
|
67
|
+
var isLight = index <= 6;
|
|
68
|
+
var hsv = tinycolor(color).toHsv();
|
|
69
|
+
var i = isLight ? lightColorCount + 1 - index : index - lightColorCount - 1;
|
|
70
|
+
return tinycolor({
|
|
71
|
+
h: getHue(hsv, i, isLight),
|
|
72
|
+
s: getSaturation(hsv, i, isLight),
|
|
73
|
+
v: getValue(hsv, i, isLight),
|
|
74
|
+
}).toHexString();
|
|
75
|
+
};
|
|
76
|
+
})()`;
|
|
77
|
+
}
|
|
78
|
+
// It is hacky way to make this function will be compiled preferentially by less
|
|
79
|
+
// resolve error: `ReferenceError: colorPalette is not defined`
|
|
80
|
+
// https://github.com/ant-design/ant-motion/issues/44
|
|
81
|
+
.colorPaletteMixin();
|