@tendaui/components 1.0.0 → 1.2.3
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/LICENSE +21 -21
- package/README.md +176 -176
- package/alert/Alert.tsx +3 -2
- package/button/_example/base.tsx +10 -0
- package/button/_example/icon.tsx +20 -0
- package/color-picker/ColorPickPanel.tsx +9 -0
- package/color-picker/ColorPicker.tsx +67 -0
- package/color-picker/components/panel/alpha.tsx +32 -0
- package/color-picker/components/panel/format/index.tsx +47 -0
- package/color-picker/components/panel/format/inputs.tsx +119 -0
- package/color-picker/components/panel/header.tsx +37 -0
- package/color-picker/components/panel/hue.tsx +20 -0
- package/color-picker/components/panel/index.tsx +191 -0
- package/color-picker/components/panel/saturation.tsx +81 -0
- package/color-picker/components/panel/slider.tsx +76 -0
- package/color-picker/components/panel/swatches.tsx +84 -0
- package/color-picker/components/trigger.tsx +49 -0
- package/color-picker/defaultProps.ts +7 -0
- package/color-picker/helpers.ts +53 -0
- package/color-picker/hooks/useClassNames.ts +9 -0
- package/color-picker/hooks/useStyles.ts +39 -0
- package/color-picker/index.ts +12 -0
- package/color-picker/style/css.js +1 -0
- package/color-picker/style/index.js +1 -0
- package/color-picker/type.ts +143 -0
- package/color-picker/utils/color-picker/cmyk.ts +89 -0
- package/color-picker/utils/color-picker/color.ts +467 -0
- package/color-picker/utils/color-picker/constants.ts +187 -0
- package/color-picker/utils/color-picker/draggable.ts +100 -0
- package/color-picker/utils/color-picker/format.ts +95 -0
- package/color-picker/utils/color-picker/gradient.ts +243 -0
- package/color-picker/utils/color-picker/index.ts +7 -0
- package/color-picker/utils/color-picker/types.ts +33 -0
- package/common/observe.ts +33 -0
- package/common.ts +20 -0
- package/config-provider/ConfigContext.tsx +4 -1
- package/config-provider/index.ts +1 -1
- package/dialog/DialogCard.tsx +4 -6
- package/dialog/hooks/useDialogPosition.ts +1 -2
- package/dialog/plugin.tsx +3 -2
- package/drawer/Drawer.tsx +264 -0
- package/drawer/defaultProps.ts +19 -0
- package/drawer/hooks/useDrag.ts +98 -0
- package/drawer/hooks/useLockStyle.ts +36 -0
- package/drawer/index.ts +5 -0
- package/drawer/style/css.js +1 -0
- package/drawer/style/index.js +1 -0
- package/drawer/type.ts +193 -0
- package/drawer/utils/index.ts +76 -0
- package/fireworks/Fireworks.tsx +138 -0
- package/fireworks/index.ts +10 -0
- package/fireworks/style/css.js +0 -0
- package/fireworks/style/index.js +0 -0
- package/fireworks/type.ts +72 -0
- package/form/FormItem.tsx +5 -5
- package/form/easing.ts +10 -0
- package/form/scroll.ts +124 -0
- package/form/type.ts +519 -519
- package/global-config/default-config.ts +95 -0
- package/global-config/locale/ar_KW.ts +270 -0
- package/global-config/locale/en_US.ts +280 -0
- package/global-config/locale/it_IT.ts +287 -0
- package/global-config/locale/ja_JP.ts +279 -0
- package/global-config/locale/ko_KR.ts +279 -0
- package/global-config/locale/ru_RU.ts +288 -0
- package/global-config/locale/zh_CN.ts +279 -0
- package/global-config/locale/zh_TW.ts +279 -0
- package/global-config/mobile/default-config.ts +6 -0
- package/global-config/mobile/locale/ar_KW.ts +113 -0
- package/global-config/mobile/locale/en_US.ts +114 -0
- package/global-config/mobile/locale/it_IT.ts +114 -0
- package/global-config/mobile/locale/ja_JP.ts +101 -0
- package/global-config/mobile/locale/ko_KR.ts +101 -0
- package/global-config/mobile/locale/ru_RU.ts +113 -0
- package/global-config/mobile/locale/zh_CN.ts +101 -0
- package/global-config/mobile/locale/zh_TW.ts +101 -0
- package/global-config/t.ts +111 -0
- package/hooks/useControlled.ts +3 -3
- package/hooks/useDeepEffect.ts +32 -0
- package/hooks/useGlobalIcon.ts +10 -3
- package/hooks/useLastest.ts +2 -6
- package/hooks/useResizeObserve.ts +36 -0
- package/index.ts +10 -7
- package/input/Input.tsx +4 -1
- package/input/defaultProps.ts +0 -2
- package/input/type.ts +1 -6
- package/input-number/InputNumber.tsx +124 -0
- package/input-number/defaultProps.ts +17 -0
- package/input-number/index.ts +9 -0
- package/input-number/style/css.js +1 -0
- package/input-number/style/index.js +1 -0
- package/input-number/type.ts +147 -0
- package/input-number/useInputNumber.tsx +270 -0
- package/ip-input/IPInput.tsx +516 -0
- package/ip-input/defaultProps.ts +11 -0
- package/ip-input/index.ts +3 -0
- package/ip-input/style/css.js +1 -0
- package/ip-input/style/index.js +1 -0
- package/ip-input/type.ts +115 -0
- package/ip-input/utils.ts +112 -0
- package/layout/Aside.tsx +38 -0
- package/layout/Layout.tsx +104 -0
- package/layout/defaultProps.ts +9 -0
- package/layout/index.ts +9 -0
- package/layout/style/css.js +1 -0
- package/layout/style/index.js +1 -0
- package/layout/type.ts +43 -0
- package/list/List.tsx +144 -0
- package/list/ListItem.tsx +36 -0
- package/list/ListItemMeta.tsx +40 -0
- package/list/defaultProps.ts +11 -0
- package/list/hooks/useListVirtualScroll.ts +82 -0
- package/list/index.ts +11 -0
- package/list/style/css.js +1 -0
- package/list/style/index.js +1 -0
- package/list/type.ts +93 -0
- package/locale/LocalReceiver.ts +55 -0
- package/locale/ar_KW.ts +7 -0
- package/locale/en_US.ts +7 -0
- package/locale/it_IT.ts +6 -0
- package/locale/ja_JP.ts +6 -0
- package/locale/ko_KR.ts +6 -0
- package/locale/ru_RU.ts +6 -0
- package/locale/zh_CN.ts +5 -0
- package/locale/zh_TW.ts +7 -0
- package/notification/NotifyContainer.tsx +2 -2
- package/notification/NotifyContext.tsx +1 -0
- package/package.json +6 -3
- package/popup/Popup.tsx +34 -10
- package/radio/Radio.tsx +24 -0
- package/radio/RadioGroup.tsx +159 -0
- package/radio/defaultProps.ts +18 -0
- package/radio/index.ts +12 -0
- package/radio/style/css.js +0 -0
- package/radio/style/index.js +1 -0
- package/radio/type.ts +115 -0
- package/radio/useKeyboard.ts +36 -0
- package/select/hooks/useOptions.ts +10 -7
- package/select/hooks/usePanelVirtualScroll.ts +1 -1
- package/select/type.ts +382 -382
- package/select-input/type.ts +280 -280
- package/slider/Slider.tsx +270 -0
- package/slider/SliderHandleButton.tsx +50 -0
- package/slider/defaultProps.ts +15 -0
- package/slider/index.ts +9 -0
- package/slider/style/css.js +1 -0
- package/slider/style/index.js +1 -0
- package/slider/type.ts +77 -0
- package/style/all.js +26 -0
- package/styles/_global.scss +39 -39
- package/styles/_vars.scss +358 -386
- package/styles/components/alert/_index.scss +175 -175
- package/styles/components/alert/_vars.scss +39 -39
- package/styles/components/badge/_index.scss +70 -70
- package/styles/components/badge/_vars.scss +25 -25
- package/styles/components/button/_index.scss +499 -511
- package/styles/components/button/_mixins.scss +39 -39
- package/styles/components/button/_vars.scss +120 -122
- package/styles/components/checkbox/_index.scss +158 -158
- package/styles/components/checkbox/_var.scss +60 -60
- package/styles/components/color-picker/_index.scss +586 -0
- package/styles/components/color-picker/_mixins.scss +0 -0
- package/styles/components/color-picker/_vars.scss +84 -0
- package/styles/components/dialog/_animate.scss +135 -135
- package/styles/components/dialog/_index.scss +311 -311
- package/styles/components/dialog/_vars.scss +59 -59
- package/styles/components/drawer/_index.scss +205 -0
- package/styles/components/drawer/_mixins.scss +1 -0
- package/styles/components/drawer/_var.scss +53 -0
- package/styles/components/fireworks/_index.scss +86 -0
- package/styles/components/fireworks/_vars.scss +4 -0
- package/styles/components/form/_index.scss +174 -174
- package/styles/components/form/_mixins.scss +76 -76
- package/styles/components/form/_vars.scss +100 -100
- package/styles/components/input/_index.scss +349 -349
- package/styles/components/input/_mixins.scss +116 -116
- package/styles/components/input/_vars.scss +134 -134
- package/styles/components/input-number/_index.scss +353 -0
- package/styles/components/input-number/_mixins.scss +0 -0
- package/styles/components/input-number/_vars.scss +65 -0
- package/styles/components/ip-input/_index.scss +280 -0
- package/styles/components/layout/_index.scss +47 -0
- package/styles/components/layout/_mixin.scss +0 -0
- package/styles/components/layout/_vars.scss +18 -0
- package/styles/components/layout/doc.scss +74 -0
- package/styles/components/list/_index.scss +172 -0
- package/styles/components/list/_mixins.scss +0 -0
- package/styles/components/list/_vars.scss +41 -0
- package/styles/components/loading/_index.scss +112 -112
- package/styles/components/loading/_vars.scss +39 -39
- package/styles/components/notification/_index.scss +160 -160
- package/styles/components/notification/_mixins.scss +12 -12
- package/styles/components/notification/_vars.scss +59 -59
- package/styles/components/popup/_index.scss +82 -82
- package/styles/components/popup/_mixin.scss +149 -149
- package/styles/components/popup/_var.scss +31 -31
- package/styles/components/radio/_index.scss +376 -0
- package/styles/components/radio/_mixins.scss +0 -0
- package/styles/components/radio/_var.scss +92 -0
- package/styles/components/select/_index.scss +290 -290
- package/styles/components/select/_var.scss +65 -65
- package/styles/components/select-input/_index.scss +5 -5
- package/styles/components/select-input/_var.scss +3 -3
- package/styles/components/slider/_index.scss +241 -0
- package/styles/components/slider/_mixins.scss +0 -0
- package/styles/components/slider/_vars.scss +50 -0
- package/styles/components/switch/_index.scss +279 -279
- package/styles/components/switch/_vars.scss +61 -61
- package/styles/components/table/_index.scss +193 -0
- package/styles/components/table/_var.scss +52 -0
- package/styles/components/tabs/_index.scss +165 -0
- package/styles/components/tabs/_mixins.scss +11 -0
- package/styles/components/tabs/_vars.scss +71 -0
- package/styles/components/tag/_index.scss +316 -316
- package/styles/components/tag/_var.scss +85 -85
- package/styles/components/tag-input/_index.scss +163 -163
- package/styles/components/tag-input/_vars.scss +16 -16
- package/styles/globals.css +250 -250
- package/styles/mixins/_focus.scss +7 -7
- package/styles/mixins/_layout.scss +32 -32
- package/styles/mixins/_reset.scss +10 -10
- package/styles/mixins/_scrollbar.scss +31 -31
- package/styles/mixins/_text.scss +48 -48
- package/styles/rillple.css +16 -16
- package/styles/scrollbar.css +41 -41
- package/styles/themes/_dark.scss +191 -191
- package/styles/themes/_font.scss +69 -79
- package/styles/themes/_index.scss +5 -5
- package/styles/themes/_light.scss +190 -190
- package/styles/themes/_radius.scss +9 -9
- package/styles/themes/_size.scss +68 -68
- package/styles/themes.css +66 -66
- package/styles/utilities/_animation.scss +57 -57
- package/styles/utilities/_tips.scss +9 -9
- package/tab/TabBar.tsx +85 -0
- package/tab/TabNav.tsx +103 -0
- package/tab/TabNavItem.tsx +80 -0
- package/tab/TabPanel.tsx +42 -0
- package/tab/Tabs.tsx +71 -0
- package/tab/defaultProps.ts +19 -0
- package/tab/index.ts +7 -0
- package/tab/style/index.js +1 -0
- package/tab/type.ts +125 -0
- package/tab/useTabClass.ts +20 -0
- package/table/Cell.tsx +109 -0
- package/table/TBody.tsx +77 -0
- package/table/THead.tsx +63 -0
- package/table/TR.tsx +78 -0
- package/table/Table.tsx +73 -0
- package/table/defaultProps.ts +14 -0
- package/table/hooks/index.ts +4 -0
- package/table/hooks/useTableClassName.ts +63 -0
- package/table/hooks/useTableStyle.ts +93 -0
- package/table/index.ts +7 -0
- package/table/style/css.js +1 -0
- package/table/style/index.js +1 -0
- package/table/type.ts +192 -0
- package/tag/Tag.tsx +1 -1
- package/tag-input/hooks/useTagList.tsx +1 -1
- package/utils/dom.ts +4 -0
- package/utils/forwardRefWithStatics.ts +1 -4
- package/utils/input-number/large-number.ts +423 -0
- package/utils/input-number/number.ts +257 -0
- package/utils/isFragment.ts +6 -6
- package/utils/log/index.ts +3 -0
- package/utils/log/log.ts +30 -0
- package/utils/log/types.ts +12 -0
- package/utils/number.ts +21 -0
- package/utils/scroll.ts +26 -0
- package/utils/style.ts +2 -4
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export type AnimationType = 'ripple' | 'expand' | 'fade';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
classPrefix: 't',
|
|
5
|
+
animation: {
|
|
6
|
+
include: ['ripple', 'expand', 'fade'],
|
|
7
|
+
exclude: [],
|
|
8
|
+
} as Record<'include' | 'exclude', Array<AnimationType>>,
|
|
9
|
+
attach: null,
|
|
10
|
+
calendar: {
|
|
11
|
+
firstDayOfWeek: 1,
|
|
12
|
+
fillWithZero: true,
|
|
13
|
+
controllerConfig: undefined,
|
|
14
|
+
},
|
|
15
|
+
icon: {},
|
|
16
|
+
input: {
|
|
17
|
+
autocomplete: '',
|
|
18
|
+
},
|
|
19
|
+
dialog: {
|
|
20
|
+
closeOnEscKeydown: true,
|
|
21
|
+
closeOnOverlayClick: true,
|
|
22
|
+
confirmBtnTheme: {
|
|
23
|
+
default: 'primary',
|
|
24
|
+
info: 'primary',
|
|
25
|
+
warning: 'primary',
|
|
26
|
+
danger: 'primary',
|
|
27
|
+
success: 'primary',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
message: {},
|
|
31
|
+
popconfirm: {
|
|
32
|
+
confirmBtnTheme: {
|
|
33
|
+
default: 'primary',
|
|
34
|
+
warning: 'primary',
|
|
35
|
+
danger: 'primary',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
table: {
|
|
39
|
+
// 展开和收起图标(使用收起图标)
|
|
40
|
+
expandIcon: undefined,
|
|
41
|
+
// 排序图标(使用降序图标)
|
|
42
|
+
sortIcon: undefined,
|
|
43
|
+
// 过滤图标
|
|
44
|
+
filterIcon: undefined,
|
|
45
|
+
// 树形结构展开图标
|
|
46
|
+
treeExpandAndFoldIcon: undefined,
|
|
47
|
+
// 是否隐藏排序图标的文本提示
|
|
48
|
+
hideSortTips: false,
|
|
49
|
+
// 全局表格尺寸配置
|
|
50
|
+
size: 'medium',
|
|
51
|
+
},
|
|
52
|
+
select: {
|
|
53
|
+
// 清除按钮
|
|
54
|
+
clearIcon: undefined,
|
|
55
|
+
filterable: false,
|
|
56
|
+
},
|
|
57
|
+
drawer: {
|
|
58
|
+
closeOnEscKeydown: true,
|
|
59
|
+
closeOnOverlayClick: true,
|
|
60
|
+
size: 'small',
|
|
61
|
+
},
|
|
62
|
+
tree: {
|
|
63
|
+
// 目录层级图标
|
|
64
|
+
folderIcon: undefined,
|
|
65
|
+
},
|
|
66
|
+
datePicker: {
|
|
67
|
+
firstDayOfWeek: 1,
|
|
68
|
+
},
|
|
69
|
+
steps: {
|
|
70
|
+
checkIcon: undefined,
|
|
71
|
+
errorIcon: undefined,
|
|
72
|
+
},
|
|
73
|
+
tag: {
|
|
74
|
+
closeIcon: undefined,
|
|
75
|
+
},
|
|
76
|
+
form: {
|
|
77
|
+
requiredMark: undefined,
|
|
78
|
+
},
|
|
79
|
+
empty: {
|
|
80
|
+
titleText: {
|
|
81
|
+
maintenance: undefined,
|
|
82
|
+
success: undefined,
|
|
83
|
+
fail: undefined,
|
|
84
|
+
empty: undefined,
|
|
85
|
+
networkError: undefined,
|
|
86
|
+
},
|
|
87
|
+
image: {
|
|
88
|
+
maintenance: undefined,
|
|
89
|
+
success: undefined,
|
|
90
|
+
fail: undefined,
|
|
91
|
+
empty: undefined,
|
|
92
|
+
networkError: undefined,
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
} as const;
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
// 文件有效,为国际化做准备
|
|
3
|
+
import 'dayjs/locale/ar';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
autoComplete: {
|
|
7
|
+
empty: 'لا تتوافر بيانات',
|
|
8
|
+
},
|
|
9
|
+
pagination: {
|
|
10
|
+
itemsPerPage: '{size} / الصفحة',
|
|
11
|
+
jumpTo: 'القفز إلى',
|
|
12
|
+
page: '',
|
|
13
|
+
total: '{count} عناصر',
|
|
14
|
+
},
|
|
15
|
+
cascader: {
|
|
16
|
+
empty: 'لا تتوافر بيانات',
|
|
17
|
+
loadingText: 'جار التحميل…',
|
|
18
|
+
placeholder: 'الرجاء التحديد',
|
|
19
|
+
},
|
|
20
|
+
calendar: {
|
|
21
|
+
yearSelection: '{year}',
|
|
22
|
+
monthSelection: '{month}',
|
|
23
|
+
yearRadio: 'عام',
|
|
24
|
+
monthRadio: 'شهر',
|
|
25
|
+
hideWeekend: 'إخفاء عطلة نهاية الأسبوع',
|
|
26
|
+
showWeekend: 'عرض عطلة نهاية الأسبوع',
|
|
27
|
+
today: 'اليوم',
|
|
28
|
+
thisMonth: 'هذا الشهر',
|
|
29
|
+
week: 'الاثنين الثلاثاء الاربعاء الخميس الجمعة السبت الاحد',
|
|
30
|
+
cellMonth:
|
|
31
|
+
'يناير ، فبراير ، مارس ، أبريل ، مايو ، يونيو ، يوليو ، أغسطس ، سبتمبر ، أكتوبر ، نوفمبر ، ديسمبر',
|
|
32
|
+
},
|
|
33
|
+
transfer: {
|
|
34
|
+
title: '{checked} / {total}',
|
|
35
|
+
empty: 'لا تتوافر بيانات',
|
|
36
|
+
placeholder: 'أدخل الكلمة للبحث',
|
|
37
|
+
},
|
|
38
|
+
timePicker: {
|
|
39
|
+
dayjsLocale: 'ar',
|
|
40
|
+
now: 'الآن',
|
|
41
|
+
confirm: 'نعم',
|
|
42
|
+
anteMeridiem: 'صباحا',
|
|
43
|
+
postMeridiem: 'مساءً',
|
|
44
|
+
placeholder: 'الرجاء التحديد',
|
|
45
|
+
},
|
|
46
|
+
dialog: {
|
|
47
|
+
confirm: 'نعم',
|
|
48
|
+
cancel: 'يلغي',
|
|
49
|
+
},
|
|
50
|
+
drawer: {
|
|
51
|
+
confirm: 'نعم',
|
|
52
|
+
cancel: 'يلغي',
|
|
53
|
+
},
|
|
54
|
+
popconfirm: {
|
|
55
|
+
confirm: { content: 'نعم' },
|
|
56
|
+
cancel: { content: 'يلغي' },
|
|
57
|
+
},
|
|
58
|
+
table: {
|
|
59
|
+
empty: 'لا تتوافر بيانات',
|
|
60
|
+
loadingText: 'جار التحميل…',
|
|
61
|
+
loadingMoreText: 'انقر لتحميل المزيد',
|
|
62
|
+
filterInputPlaceholder:
|
|
63
|
+
'الرجاء إدخال المحتوى (لا توجد قيمة افتراضية متاحة)',
|
|
64
|
+
sortAscendingOperationText: 'انقر للفرز تصاعديًا',
|
|
65
|
+
sortCancelOperationText: 'انقر لإلغاء الفرز',
|
|
66
|
+
sortDescendingOperationText: 'انقر للفرز تنازليًا',
|
|
67
|
+
clearFilterResultButtonText: 'صافي',
|
|
68
|
+
columnConfigButtonText: 'تكوين العمود',
|
|
69
|
+
columnConfigTitleText: 'تكوين عمود الجدول',
|
|
70
|
+
columnConfigDescriptionText:
|
|
71
|
+
'الرجاء تحديد أعمدة البيانات المراد عرضها في الجدول',
|
|
72
|
+
confirmText: 'نعم',
|
|
73
|
+
cancelText: 'يلغي',
|
|
74
|
+
resetText: 'إعادة ضبط',
|
|
75
|
+
selectAllText: 'اختر الكل',
|
|
76
|
+
searchResultText: "تم العثور على بحث '{result}' و{count} من العناصر.",
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
select: {
|
|
80
|
+
empty: 'لا تتوافر بيانات',
|
|
81
|
+
loadingText: 'جار التحميل…',
|
|
82
|
+
placeholder: 'الرجاء التحديد',
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
tree: { empty: 'لا تتوافر بيانات' },
|
|
86
|
+
|
|
87
|
+
treeSelect: {
|
|
88
|
+
empty: 'لا تتوافر بيانات',
|
|
89
|
+
loadingText: 'جار التحميل…',
|
|
90
|
+
placeholder: 'الرجاء التحديد',
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
datePicker: {
|
|
94
|
+
dayjsLocale: 'ar',
|
|
95
|
+
placeholder: {
|
|
96
|
+
date: 'حدد تاريخ',
|
|
97
|
+
month: 'اختر الشهر',
|
|
98
|
+
year: 'اختر السنة',
|
|
99
|
+
quarter: 'الرجاء تحديد الربع',
|
|
100
|
+
week: 'الرجاء تحديد اسبوع',
|
|
101
|
+
},
|
|
102
|
+
weekdays: [
|
|
103
|
+
'الإثنين',
|
|
104
|
+
'الثلاثاء',
|
|
105
|
+
'الأربعاء',
|
|
106
|
+
'الخميس',
|
|
107
|
+
'الجمعة',
|
|
108
|
+
'السبت',
|
|
109
|
+
'الأحد',
|
|
110
|
+
],
|
|
111
|
+
months: [
|
|
112
|
+
'يناير',
|
|
113
|
+
'فبراير',
|
|
114
|
+
'مارس',
|
|
115
|
+
'أبريل',
|
|
116
|
+
'مايو',
|
|
117
|
+
'يونيو',
|
|
118
|
+
'يوليو',
|
|
119
|
+
'أغسطس',
|
|
120
|
+
'سبتمبر',
|
|
121
|
+
'أكتوبر',
|
|
122
|
+
'نوفمبر',
|
|
123
|
+
'ديسمبر',
|
|
124
|
+
],
|
|
125
|
+
quarters: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
126
|
+
rangeSeparator: ' - ',
|
|
127
|
+
direction: 'ltr',
|
|
128
|
+
format: 'YYYY-MM-DD',
|
|
129
|
+
dayAriaLabel: 'D',
|
|
130
|
+
yearAriaLabel: 'Y',
|
|
131
|
+
monthAriaLabel: 'M',
|
|
132
|
+
weekAbbreviation: 'W',
|
|
133
|
+
confirm: 'نعم',
|
|
134
|
+
selectTime: 'حدد الوقت',
|
|
135
|
+
selectDate: 'حدد تاريخ',
|
|
136
|
+
nextYear: 'العام القادم',
|
|
137
|
+
preYear: 'العام الماضي',
|
|
138
|
+
nextMonth: 'الشهر القادم',
|
|
139
|
+
preMonth: 'الشهر الماضي',
|
|
140
|
+
preDecade: 'العقد الماضي',
|
|
141
|
+
nextDecade: 'العقد القادم',
|
|
142
|
+
now: 'الآن',
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
upload: {
|
|
146
|
+
sizeLimitMessage: 'لا يمكن أن يتجاوز حجم الملف {sizeLimit}',
|
|
147
|
+
cancelUploadText: 'يلغي',
|
|
148
|
+
triggerUploadText: {
|
|
149
|
+
fileInput: 'حدد الملف',
|
|
150
|
+
image: 'انقر لتحميل الصورة',
|
|
151
|
+
normal: 'تحميل',
|
|
152
|
+
reupload: 'أعد تحميل',
|
|
153
|
+
continueUpload: 'تحميل المزيد',
|
|
154
|
+
delete: 'حذف',
|
|
155
|
+
uploading: 'تحميل',
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
dragger: {
|
|
159
|
+
dragDropText: 'أسقطها هنا',
|
|
160
|
+
draggingText: 'اسحب الملف هنا',
|
|
161
|
+
clickAndDragText: 'اختر ملفًا أو اسحبه هنا.',
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
file: {
|
|
165
|
+
fileNameText: 'اسم الملف',
|
|
166
|
+
fileSizeText: 'حجم',
|
|
167
|
+
fileStatusText: 'حالة',
|
|
168
|
+
fileOperationText: 'عملية',
|
|
169
|
+
fileOperationDateText: 'تاريخ',
|
|
170
|
+
},
|
|
171
|
+
progress: {
|
|
172
|
+
uploadingText: 'تحميل',
|
|
173
|
+
waitingText: 'جار التحميل',
|
|
174
|
+
failText: 'التحميل فشل',
|
|
175
|
+
successText: 'تم التحميل بنجاح.',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
form: {
|
|
180
|
+
errorMessage: {
|
|
181
|
+
date: 'الرجاء إدخال ${name} الصحيح',
|
|
182
|
+
url: 'الرجاء إدخال ${name} الصحيح',
|
|
183
|
+
whitespace: 'لا يمكن أن يكون ${name} فارغًا',
|
|
184
|
+
required: 'مطلوب ${name}',
|
|
185
|
+
max: 'يمكن أن يحتوي ${name} على ما يصل إلى ${validate} حرفًا',
|
|
186
|
+
min: 'لا يمكن أن يكون ${name} أقل من ${validate} حرفًا',
|
|
187
|
+
len: 'يجب أن يتكون ${name} من أحرف ${validate} بالضبط',
|
|
188
|
+
enum: '${name} يجب أن يكون واحدًا من ${validate} ',
|
|
189
|
+
idcard: 'الرجاء إدخال ${name} الصحيح',
|
|
190
|
+
telnumber: 'الرجاء إدخال ${name} الصحيح',
|
|
191
|
+
pattern: 'الرجاء إدخال ${name} الصحيح',
|
|
192
|
+
validator: '${name} غير صالح',
|
|
193
|
+
boolean: '${name} ليس منطقيًا',
|
|
194
|
+
number: 'يجب أن يكون ${name} رقمًا',
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
input: { placeholder: 'الرجاء إدخال' },
|
|
199
|
+
|
|
200
|
+
list: {
|
|
201
|
+
loadingText: 'جار التحميل…',
|
|
202
|
+
loadingMoreText: 'انقر لتحميل المزيد',
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
alert: {
|
|
206
|
+
expandText: 'تزسيع',
|
|
207
|
+
collapseText: 'انهيار',
|
|
208
|
+
},
|
|
209
|
+
|
|
210
|
+
anchor: {
|
|
211
|
+
copySuccessText: 'تم نسخ الرابط',
|
|
212
|
+
copyText: 'انسخ الرابط',
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
colorPicker: {
|
|
216
|
+
swatchColorTitle: 'الألوان الافتراضية',
|
|
217
|
+
recentColorTitle: 'مستخدم حديثا',
|
|
218
|
+
clearConfirmText: 'هل تريد مسح الألوان المستخدمة مؤخرًا؟',
|
|
219
|
+
singleColor: 'موحد',
|
|
220
|
+
gradientColor: 'متدرج'
|
|
221
|
+
},
|
|
222
|
+
image: {
|
|
223
|
+
errorText: 'غير قادر على التحميل',
|
|
224
|
+
loadingText: 'جار التحميل',
|
|
225
|
+
},
|
|
226
|
+
imageViewer: {
|
|
227
|
+
errorText: 'غير قادر على التحميل',
|
|
228
|
+
mirrorTipText: 'مرآة',
|
|
229
|
+
rotateTipText: 'استدارة',
|
|
230
|
+
originalSizeTipText: 'أصلي',
|
|
231
|
+
},
|
|
232
|
+
typography: {
|
|
233
|
+
expandText: 'توسيع',
|
|
234
|
+
collapseText: 'طي',
|
|
235
|
+
copiedText: 'النسخ اكتمل',
|
|
236
|
+
},
|
|
237
|
+
rate: {
|
|
238
|
+
rateText: ['فظيع', 'خيبة أمل', 'عادي', 'راض', 'مفاجأة'],
|
|
239
|
+
},
|
|
240
|
+
empty: {
|
|
241
|
+
titleText: {
|
|
242
|
+
maintenance: 'تحت الإنشاء',
|
|
243
|
+
success: 'النجاح',
|
|
244
|
+
fail: 'الفشل',
|
|
245
|
+
empty: 'لا توجد بيانات حتى الآن',
|
|
246
|
+
networkError: 'خطأ في الشبكة',
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
chat: {
|
|
250
|
+
placeholder: 'الرجاء إدخال رسالة...',
|
|
251
|
+
stopBtnText: 'إيقاف',
|
|
252
|
+
refreshTipText: 'إعادة توليد',
|
|
253
|
+
copyTipText: 'نسخ',
|
|
254
|
+
likeTipText: 'إعجاب',
|
|
255
|
+
dislikeTipText: 'عدم إعجاب',
|
|
256
|
+
copyCodeBtnText: 'نسخ الكود',
|
|
257
|
+
copyCodeSuccessText: 'تم النسخ',
|
|
258
|
+
clearHistoryBtnText: 'مسح السجل',
|
|
259
|
+
copyTextSuccess: 'تم النسخ إلى الحافظة بنجاح',
|
|
260
|
+
copyTextFail: 'فشل النسخ إلى الحافظة',
|
|
261
|
+
confirmClearHistory: 'هل أنت متأكد من مسح جميع الرسائل؟',
|
|
262
|
+
uploadImageText: 'رفع الصورة',
|
|
263
|
+
uploadAttachmentText: 'رفع المرفق',
|
|
264
|
+
},
|
|
265
|
+
qrcode: {
|
|
266
|
+
expiredText: 'منتهي الصلاحية',
|
|
267
|
+
refreshText: 'ينعش',
|
|
268
|
+
scannedText: 'تم مسحها ضوئيًا',
|
|
269
|
+
}
|
|
270
|
+
} as const;
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
// 文件有效,为国际化做准备
|
|
3
|
+
import 'dayjs/locale/en';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
autoComplete: {
|
|
7
|
+
empty: 'Empty Data',
|
|
8
|
+
},
|
|
9
|
+
pagination: {
|
|
10
|
+
itemsPerPage: '{size} / page',
|
|
11
|
+
jumpTo: 'Jump to',
|
|
12
|
+
page: '',
|
|
13
|
+
total: 'no items | 1 item | {count} items',
|
|
14
|
+
},
|
|
15
|
+
cascader: {
|
|
16
|
+
empty: 'Empty Data',
|
|
17
|
+
loadingText: 'loading...',
|
|
18
|
+
placeholder: 'please select',
|
|
19
|
+
},
|
|
20
|
+
calendar: {
|
|
21
|
+
yearSelection: '{year}',
|
|
22
|
+
monthSelection: '{month}',
|
|
23
|
+
yearRadio: 'year',
|
|
24
|
+
monthRadio: 'month',
|
|
25
|
+
hideWeekend: 'Hide Week',
|
|
26
|
+
showWeekend: 'Show Week',
|
|
27
|
+
today: 'Today',
|
|
28
|
+
thisMonth: 'This Month',
|
|
29
|
+
week: 'Monday,Tuesday,Wedsday,Thuresday,Friday,Saturday,Sunday',
|
|
30
|
+
cellMonth:
|
|
31
|
+
'January,February,March,April,May,June,July,August,September,October,November,December',
|
|
32
|
+
},
|
|
33
|
+
transfer: {
|
|
34
|
+
title: '{checked} / {total}',
|
|
35
|
+
empty: 'Empty Data',
|
|
36
|
+
placeholder: 'enter keyword to search',
|
|
37
|
+
},
|
|
38
|
+
timePicker: {
|
|
39
|
+
dayjsLocale: 'en',
|
|
40
|
+
now: 'Now',
|
|
41
|
+
confirm: 'Confirm',
|
|
42
|
+
anteMeridiem: 'AM',
|
|
43
|
+
postMeridiem: 'PM',
|
|
44
|
+
placeholder: 'please select',
|
|
45
|
+
},
|
|
46
|
+
dialog: {
|
|
47
|
+
confirm: 'Confirm',
|
|
48
|
+
cancel: 'Cancel',
|
|
49
|
+
},
|
|
50
|
+
drawer: {
|
|
51
|
+
confirm: 'Confirm',
|
|
52
|
+
cancel: 'Cancel',
|
|
53
|
+
},
|
|
54
|
+
popconfirm: {
|
|
55
|
+
confirm: {
|
|
56
|
+
content: 'OK',
|
|
57
|
+
},
|
|
58
|
+
cancel: {
|
|
59
|
+
content: 'Cancel',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
table: {
|
|
63
|
+
empty: 'Empty Data',
|
|
64
|
+
loadingText: 'loading...',
|
|
65
|
+
loadingMoreText: 'loading more',
|
|
66
|
+
filterInputPlaceholder: '',
|
|
67
|
+
sortAscendingOperationText: 'click to sort ascending',
|
|
68
|
+
sortCancelOperationText: 'click to cancel sorting',
|
|
69
|
+
sortDescendingOperationText: 'click to sort descending',
|
|
70
|
+
clearFilterResultButtonText: 'Clear',
|
|
71
|
+
columnConfigButtonText: 'Column Config',
|
|
72
|
+
columnConfigTitleText: 'Table Column Config',
|
|
73
|
+
columnConfigDescriptionText:
|
|
74
|
+
'Please select columns to show them in the table',
|
|
75
|
+
confirmText: 'Confirm',
|
|
76
|
+
cancelText: 'Cancel',
|
|
77
|
+
resetText: 'Reset',
|
|
78
|
+
selectAllText: 'Select All',
|
|
79
|
+
searchResultText: 'Search "{result}". Found no items. | Search "{result}". Found 1 item. | Search "{result}". Found {count} items.',
|
|
80
|
+
},
|
|
81
|
+
select: {
|
|
82
|
+
empty: 'Empty Data',
|
|
83
|
+
loadingText: 'loading...',
|
|
84
|
+
placeholder: 'please select',
|
|
85
|
+
},
|
|
86
|
+
tree: {
|
|
87
|
+
empty: 'Empty Data',
|
|
88
|
+
},
|
|
89
|
+
treeSelect: {
|
|
90
|
+
empty: 'Empty Data',
|
|
91
|
+
loadingText: 'loading...',
|
|
92
|
+
placeholder: 'please select',
|
|
93
|
+
},
|
|
94
|
+
datePicker: {
|
|
95
|
+
dayjsLocale: 'en',
|
|
96
|
+
placeholder: {
|
|
97
|
+
date: 'select date',
|
|
98
|
+
month: 'select month',
|
|
99
|
+
year: 'select year',
|
|
100
|
+
quarter: 'select quarter',
|
|
101
|
+
week: 'select week',
|
|
102
|
+
},
|
|
103
|
+
weekdays: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
|
104
|
+
months: [
|
|
105
|
+
'Jan',
|
|
106
|
+
'Feb',
|
|
107
|
+
'Mar',
|
|
108
|
+
'Apr',
|
|
109
|
+
'May',
|
|
110
|
+
'Jun',
|
|
111
|
+
'Jul',
|
|
112
|
+
'Aug',
|
|
113
|
+
'Sep',
|
|
114
|
+
'Oct',
|
|
115
|
+
'Nov',
|
|
116
|
+
'Dec',
|
|
117
|
+
],
|
|
118
|
+
quarters: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
119
|
+
rangeSeparator: ' - ',
|
|
120
|
+
direction: 'ltr',
|
|
121
|
+
format: 'YYYY-MM-DD',
|
|
122
|
+
dayAriaLabel: 'D',
|
|
123
|
+
yearAriaLabel: 'Y',
|
|
124
|
+
monthAriaLabel: 'M',
|
|
125
|
+
weekAbbreviation: 'W',
|
|
126
|
+
confirm: 'Confirm',
|
|
127
|
+
selectTime: 'Select Time',
|
|
128
|
+
selectDate: 'Select Date',
|
|
129
|
+
nextYear: 'Next Year',
|
|
130
|
+
preYear: 'Last Year',
|
|
131
|
+
nextMonth: 'Next Month',
|
|
132
|
+
preMonth: 'Last Month',
|
|
133
|
+
preDecade: 'Last Decade',
|
|
134
|
+
nextDecade: 'Next Decade',
|
|
135
|
+
now: 'Now',
|
|
136
|
+
},
|
|
137
|
+
upload: {
|
|
138
|
+
sizeLimitMessage: 'File is too large to upload. {sizeLimit}',
|
|
139
|
+
cancelUploadText: 'Cancel',
|
|
140
|
+
triggerUploadText: {
|
|
141
|
+
fileInput: 'Upload',
|
|
142
|
+
image: 'Click to upload',
|
|
143
|
+
normal: 'Upload',
|
|
144
|
+
reupload: 'ReUpload',
|
|
145
|
+
continueUpload: 'Continue Upload',
|
|
146
|
+
delete: 'Delete',
|
|
147
|
+
uploading: 'Uploading',
|
|
148
|
+
},
|
|
149
|
+
dragger: {
|
|
150
|
+
dragDropText: 'Drop here',
|
|
151
|
+
draggingText: 'Drag file to this area to upload',
|
|
152
|
+
clickAndDragText: 'Click "Upload" or Drag file to this area to upload',
|
|
153
|
+
},
|
|
154
|
+
file: {
|
|
155
|
+
fileNameText: 'filename',
|
|
156
|
+
fileSizeText: 'size',
|
|
157
|
+
fileStatusText: 'status',
|
|
158
|
+
fileOperationText: 'operation',
|
|
159
|
+
fileOperationDateText: 'date',
|
|
160
|
+
},
|
|
161
|
+
progress: {
|
|
162
|
+
uploadingText: 'Uploading',
|
|
163
|
+
waitingText: 'Waiting',
|
|
164
|
+
failText: 'Failed',
|
|
165
|
+
successText: 'Success',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
form: {
|
|
169
|
+
errorMessage: {
|
|
170
|
+
date: '${name} is invalid',
|
|
171
|
+
url: '${name} is invalid',
|
|
172
|
+
required: '${name} is required',
|
|
173
|
+
whitespace: '${name} cannot be empty',
|
|
174
|
+
max: '${name} must be at least ${validate} characters',
|
|
175
|
+
min: '${name} cannot be longer than ${validate} characters',
|
|
176
|
+
len: '${name} must be exactly ${validate} characters',
|
|
177
|
+
enum: '${name} must be one of ${validate}',
|
|
178
|
+
idcard: '${name} is invalid',
|
|
179
|
+
telnumber: '${name} is invalid',
|
|
180
|
+
pattern: '${name} is invalid',
|
|
181
|
+
validator: '${name} is invalid',
|
|
182
|
+
boolean: '${name} is not a boolean',
|
|
183
|
+
number: '${name} must be a number',
|
|
184
|
+
},
|
|
185
|
+
colonText: ':',
|
|
186
|
+
},
|
|
187
|
+
input: {
|
|
188
|
+
placeholder: 'please enter',
|
|
189
|
+
},
|
|
190
|
+
list: {
|
|
191
|
+
loadingText: 'loading...',
|
|
192
|
+
loadingMoreText: 'loading more',
|
|
193
|
+
},
|
|
194
|
+
alert: {
|
|
195
|
+
expandText: 'expand',
|
|
196
|
+
collapseText: 'collapse',
|
|
197
|
+
},
|
|
198
|
+
anchor: {
|
|
199
|
+
copySuccessText: 'copy the link successfully',
|
|
200
|
+
copyText: 'copy link',
|
|
201
|
+
},
|
|
202
|
+
colorPicker: {
|
|
203
|
+
swatchColorTitle: 'System Default',
|
|
204
|
+
recentColorTitle: 'Recently Used',
|
|
205
|
+
clearConfirmText: 'Clear recently used colors?',
|
|
206
|
+
singleColor: 'Single',
|
|
207
|
+
gradientColor: 'Gradient',
|
|
208
|
+
},
|
|
209
|
+
guide: {
|
|
210
|
+
finishButtonProps: {
|
|
211
|
+
content: 'Finish',
|
|
212
|
+
theme: 'primary',
|
|
213
|
+
},
|
|
214
|
+
nextButtonProps: {
|
|
215
|
+
content: 'Next Step',
|
|
216
|
+
theme: 'primary',
|
|
217
|
+
},
|
|
218
|
+
skipButtonProps: {
|
|
219
|
+
content: 'Skip',
|
|
220
|
+
theme: 'default',
|
|
221
|
+
},
|
|
222
|
+
prevButtonProps: {
|
|
223
|
+
content: 'Last Step',
|
|
224
|
+
theme: 'default',
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
image: {
|
|
228
|
+
errorText: 'unable to load',
|
|
229
|
+
loadingText: 'loading',
|
|
230
|
+
},
|
|
231
|
+
imageViewer: {
|
|
232
|
+
errorText: 'unable to load',
|
|
233
|
+
mirrorTipText: 'mirror',
|
|
234
|
+
rotateTipText: 'rotate',
|
|
235
|
+
originalSizeTipText: 'original',
|
|
236
|
+
},
|
|
237
|
+
typography: {
|
|
238
|
+
expandText: 'more',
|
|
239
|
+
collapseText: 'collapse',
|
|
240
|
+
copiedText: 'copied',
|
|
241
|
+
},
|
|
242
|
+
rate: {
|
|
243
|
+
rateText: ['terrible', 'disappointed', 'normal', 'satisfied', 'surprised'],
|
|
244
|
+
},
|
|
245
|
+
empty: {
|
|
246
|
+
titleText: {
|
|
247
|
+
maintenance: 'Under Construction',
|
|
248
|
+
success: 'Success',
|
|
249
|
+
fail: 'Failure',
|
|
250
|
+
empty: 'No Data',
|
|
251
|
+
networkError: 'Network Error',
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
descriptions: {
|
|
255
|
+
colonText: ':',
|
|
256
|
+
},
|
|
257
|
+
chat: {
|
|
258
|
+
placeholder: 'please enter message...',
|
|
259
|
+
stopBtnText: 'stop',
|
|
260
|
+
refreshTipText: 'regenerate',
|
|
261
|
+
copyTipText: 'copy',
|
|
262
|
+
likeTipText: 'like',
|
|
263
|
+
dislikeTipText: 'dislike',
|
|
264
|
+
copyCodeBtnText: 'copy code',
|
|
265
|
+
copyCodeSuccessText: 'copied',
|
|
266
|
+
clearHistoryBtnText: 'clear history',
|
|
267
|
+
copyTextSuccess: 'copied',
|
|
268
|
+
copyTextFail: 'copy failed',
|
|
269
|
+
confirmClearHistory: 'Are you sure to clear all messages?',
|
|
270
|
+
loadingText: 'thinking...',
|
|
271
|
+
loadingEndText: 'deep thinking end',
|
|
272
|
+
uploadImageText: 'upload image',
|
|
273
|
+
uploadAttachmentText: 'upload attachment',
|
|
274
|
+
},
|
|
275
|
+
qrcode: {
|
|
276
|
+
expiredText: 'expired',
|
|
277
|
+
refreshText: 'refresh',
|
|
278
|
+
scannedText: 'scanned',
|
|
279
|
+
},
|
|
280
|
+
} as const;
|