@aloudata/aloudata-design 0.3.0 → 0.3.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.
Files changed (214) hide show
  1. package/README.md +15 -5
  2. package/es/Breadcrumb/index.d.ts +0 -1
  3. package/es/Button/index.js +3 -2
  4. package/es/Button/style/index.less +135 -126
  5. package/es/Button/style/variables.less +53 -53
  6. package/es/Card/index.d.ts +3 -0
  7. package/es/Card/index.js +3 -0
  8. package/es/{Message → Card}/style/index.d.ts +0 -0
  9. package/es/{Message → Card}/style/index.js +0 -0
  10. package/es/{Message → Card}/style/index.less +0 -0
  11. package/es/Checkbox/index.d.ts +0 -1
  12. package/es/Drawer/index.d.ts +4 -0
  13. package/es/Drawer/index.js +3 -0
  14. package/es/{Notification → Drawer}/style/index.d.ts +0 -0
  15. package/es/{Notification → Drawer}/style/index.js +0 -0
  16. package/es/{Notification → Drawer}/style/index.less +0 -0
  17. package/es/Dropdown/Button.js +4 -3
  18. package/es/Empty/image/Authority.d.ts +0 -1
  19. package/es/Empty/image/Dataspace.d.ts +0 -1
  20. package/es/Empty/image/Search.d.ts +0 -1
  21. package/es/Empty/image/Simple.d.ts +0 -1
  22. package/es/Empty/image/Worksheet.d.ts +0 -1
  23. package/es/Empty/image/empty.d.ts +0 -1
  24. package/es/Icon/icons/CheckLine.d.ts +13 -0
  25. package/es/Icon/icons/CheckLine.js +73 -0
  26. package/es/Icon/icons.json +410 -0
  27. package/es/Input/components/Group/index.d.ts +2 -2
  28. package/es/Input/components/Group/index.js +6 -12
  29. package/es/Input/components/Input/index.d.ts +3 -2
  30. package/es/Input/components/Input/index.js +11 -22
  31. package/es/Input/components/Password/index.js +11 -16
  32. package/es/Input/style/index.less +102 -102
  33. package/es/InputNumber/index.d.ts +0 -1
  34. package/es/InputNumber/style/index.less +69 -69
  35. package/es/Menu/Divider.d.ts +0 -1
  36. package/es/Modal/index.js +20 -16
  37. package/es/Modal/locale.d.ts +7 -0
  38. package/es/Modal/locale.js +20 -0
  39. package/es/Modal/style/index.less +45 -45
  40. package/es/Navigator/components/Header/index.d.ts +0 -1
  41. package/es/Navigator/components/Menu/index.d.ts +0 -1
  42. package/es/Navigator/components/MenuItem/index.d.ts +1 -1
  43. package/es/Navigator/index.d.ts +1 -1
  44. package/es/PageHeader/index.d.ts +3 -0
  45. package/es/PageHeader/index.js +3 -0
  46. package/{lib/Message → es/PageHeader}/style/index.d.ts +0 -0
  47. package/es/PageHeader/style/index.js +2 -0
  48. package/{lib/Message → es/PageHeader}/style/index.less +0 -0
  49. package/es/Popover/index.d.ts +0 -1
  50. package/es/Select/rc-select/OptionList.js +4 -4
  51. package/es/Select/rc-select/Selector/MultipleSelector.js +11 -1
  52. package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
  53. package/es/Select/style/index.less +69 -45
  54. package/es/Select/style/variables.less +45 -45
  55. package/es/Select/utils/iconUtil.d.ts +2 -2
  56. package/es/Select/utils/iconUtil.js +9 -5
  57. package/es/Steps/components/ProcessIcon/index.d.ts +5 -0
  58. package/es/Steps/components/ProcessIcon/index.js +8 -0
  59. package/es/Steps/components/Step/index.d.ts +20 -0
  60. package/es/Steps/components/Step/index.js +45 -0
  61. package/es/Steps/index.d.ts +36 -2
  62. package/es/Steps/index.js +30 -1
  63. package/es/Steps/matchMedia.mock.d.ts +1 -0
  64. package/es/Steps/matchMedia.mock.js +17 -0
  65. package/es/Steps/style/index.less +251 -0
  66. package/es/Switch/index.d.ts +46 -2
  67. package/es/Switch/index.js +71 -1
  68. package/es/Switch/style/index.less +129 -0
  69. package/es/Table/Table.js +3 -3
  70. package/es/Table/style/index.less +1 -1
  71. package/es/Tabs/index.js +7 -9
  72. package/es/Tabs/style/index.less +57 -25
  73. package/es/index.d.ts +13 -7
  74. package/es/index.js +6 -3
  75. package/es/locale/default.d.ts +2 -0
  76. package/es/locale/default.js +2 -0
  77. package/es/locale/en_US.d.ts +3 -0
  78. package/es/locale/en_US.js +132 -0
  79. package/es/locale/zh_CN.d.ts +3 -2
  80. package/es/locale/zh_CN.js +131 -2
  81. package/es/locale-provider/LocaleReceiver.d.ts +4 -0
  82. package/es/locale-provider/LocaleReceiver.js +3 -0
  83. package/es/locale-provider/context.d.ts +7 -0
  84. package/es/locale-provider/context.js +3 -0
  85. package/es/locale-provider/default.d.ts +2 -0
  86. package/es/locale-provider/default.js +2 -0
  87. package/es/locale-provider/en_US.d.ts +2 -0
  88. package/es/locale-provider/en_US.js +2 -0
  89. package/es/locale-provider/index.d.ts +61 -0
  90. package/es/locale-provider/index.js +102 -0
  91. package/es/locale-provider/style/index.d.ts +1 -0
  92. package/es/locale-provider/style/index.js +1 -0
  93. package/es/locale-provider/style/index.less +2 -0
  94. package/es/locale-provider/zh_CN.d.ts +2 -0
  95. package/es/locale-provider/zh_CN.js +2 -0
  96. package/es/{Message → message}/index.d.ts +0 -0
  97. package/es/{Message → message}/index.js +0 -0
  98. package/{lib/Notification → es/message}/style/index.d.ts +0 -0
  99. package/es/message/style/index.js +2 -0
  100. package/{lib/Notification → es/message}/style/index.less +0 -0
  101. package/es/{Notification → notification}/index.d.ts +0 -0
  102. package/es/{Notification → notification}/index.js +0 -0
  103. package/es/notification/style/index.d.ts +2 -0
  104. package/es/notification/style/index.js +2 -0
  105. package/es/notification/style/index.less +1 -0
  106. package/es/style/index.less +1 -1
  107. package/es/style/themes/default/index.less +30 -30
  108. package/lib/Breadcrumb/index.d.ts +0 -1
  109. package/lib/Button/index.js +5 -3
  110. package/lib/Button/style/index.less +135 -126
  111. package/lib/Button/style/variables.less +53 -53
  112. package/lib/Card/index.d.ts +3 -0
  113. package/lib/Card/index.js +15 -0
  114. package/lib/Card/style/index.d.ts +2 -0
  115. package/lib/{Message → Card}/style/index.js +0 -0
  116. package/lib/Card/style/index.less +1 -0
  117. package/lib/Checkbox/index.d.ts +0 -1
  118. package/lib/Drawer/index.d.ts +4 -0
  119. package/lib/Drawer/index.js +15 -0
  120. package/lib/Drawer/style/index.d.ts +2 -0
  121. package/lib/{Notification → Drawer}/style/index.js +0 -0
  122. package/lib/Drawer/style/index.less +1 -0
  123. package/lib/Dropdown/Button.js +8 -6
  124. package/lib/Empty/image/Authority.d.ts +0 -1
  125. package/lib/Empty/image/Dataspace.d.ts +0 -1
  126. package/lib/Empty/image/Search.d.ts +0 -1
  127. package/lib/Empty/image/Simple.d.ts +0 -1
  128. package/lib/Empty/image/Worksheet.d.ts +0 -1
  129. package/lib/Empty/image/empty.d.ts +0 -1
  130. package/lib/Icon/icons/CheckLine.d.ts +13 -0
  131. package/lib/Icon/icons/CheckLine.js +90 -0
  132. package/lib/Icon/icons.json +410 -0
  133. package/lib/Input/components/Group/index.d.ts +2 -2
  134. package/lib/Input/components/Group/index.js +7 -12
  135. package/lib/Input/components/Input/index.d.ts +3 -2
  136. package/lib/Input/components/Input/index.js +13 -22
  137. package/lib/Input/components/Password/index.js +13 -17
  138. package/lib/Input/style/index.less +102 -102
  139. package/lib/InputNumber/index.d.ts +0 -1
  140. package/lib/InputNumber/style/index.less +69 -69
  141. package/lib/Menu/Divider.d.ts +0 -1
  142. package/lib/Modal/index.js +25 -18
  143. package/lib/Modal/locale.d.ts +7 -0
  144. package/lib/Modal/locale.js +31 -0
  145. package/lib/Modal/style/index.less +45 -45
  146. package/lib/Navigator/components/Header/index.d.ts +0 -1
  147. package/lib/Navigator/components/Menu/index.d.ts +0 -1
  148. package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
  149. package/lib/Navigator/index.d.ts +1 -1
  150. package/lib/PageHeader/index.d.ts +3 -0
  151. package/lib/PageHeader/index.js +15 -0
  152. package/lib/PageHeader/style/index.d.ts +2 -0
  153. package/lib/PageHeader/style/index.js +5 -0
  154. package/lib/PageHeader/style/index.less +1 -0
  155. package/lib/Popover/index.d.ts +0 -1
  156. package/lib/Select/rc-select/OptionList.js +8 -7
  157. package/lib/Select/rc-select/Selector/MultipleSelector.js +11 -1
  158. package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
  159. package/lib/Select/style/index.less +69 -45
  160. package/lib/Select/style/variables.less +45 -45
  161. package/lib/Select/utils/iconUtil.d.ts +2 -2
  162. package/lib/Select/utils/iconUtil.js +13 -7
  163. package/lib/Steps/components/ProcessIcon/index.d.ts +5 -0
  164. package/lib/Steps/components/ProcessIcon/index.js +19 -0
  165. package/lib/Steps/components/Step/index.d.ts +20 -0
  166. package/lib/Steps/components/Step/index.js +61 -0
  167. package/lib/Steps/index.d.ts +36 -2
  168. package/lib/Steps/index.js +34 -1
  169. package/lib/Steps/matchMedia.mock.d.ts +1 -0
  170. package/lib/Steps/matchMedia.mock.js +17 -0
  171. package/lib/Steps/style/index.less +251 -0
  172. package/lib/Switch/index.d.ts +46 -2
  173. package/lib/Switch/index.js +78 -1
  174. package/lib/Switch/style/index.less +129 -0
  175. package/lib/Table/Table.js +3 -3
  176. package/lib/Table/style/index.less +1 -1
  177. package/lib/Tabs/index.js +9 -11
  178. package/lib/Tabs/style/index.less +57 -25
  179. package/lib/index.d.ts +13 -7
  180. package/lib/index.js +34 -10
  181. package/lib/locale/default.d.ts +2 -0
  182. package/lib/locale/default.js +13 -0
  183. package/lib/locale/en_US.d.ts +3 -0
  184. package/lib/locale/en_US.js +146 -0
  185. package/lib/locale/zh_CN.d.ts +3 -2
  186. package/lib/locale/zh_CN.js +134 -2
  187. package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
  188. package/lib/locale-provider/LocaleReceiver.js +23 -0
  189. package/lib/locale-provider/context.d.ts +7 -0
  190. package/lib/locale-provider/context.js +12 -0
  191. package/lib/locale-provider/default.d.ts +2 -0
  192. package/lib/locale-provider/default.js +13 -0
  193. package/lib/locale-provider/en_US.d.ts +2 -0
  194. package/lib/locale-provider/en_US.js +13 -0
  195. package/lib/locale-provider/index.d.ts +61 -0
  196. package/lib/locale-provider/index.js +116 -0
  197. package/lib/locale-provider/style/index.d.ts +1 -0
  198. package/lib/locale-provider/style/index.js +3 -0
  199. package/lib/locale-provider/style/index.less +2 -0
  200. package/lib/locale-provider/zh_CN.d.ts +2 -0
  201. package/lib/locale-provider/zh_CN.js +13 -0
  202. package/lib/{Message → message}/index.d.ts +0 -0
  203. package/lib/{Message → message}/index.js +0 -0
  204. package/lib/message/style/index.d.ts +2 -0
  205. package/lib/message/style/index.js +5 -0
  206. package/lib/message/style/index.less +1 -0
  207. package/lib/{Notification → notification}/index.d.ts +0 -0
  208. package/lib/{Notification → notification}/index.js +0 -0
  209. package/lib/notification/style/index.d.ts +2 -0
  210. package/lib/notification/style/index.js +5 -0
  211. package/lib/notification/style/index.less +1 -0
  212. package/lib/style/index.less +1 -1
  213. package/lib/style/themes/default/index.less +30 -30
  214. package/package.json +11 -8
package/es/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /// <reference path="../typings.d.ts" />
2
2
  export { default as Button } from './Button';
3
- export type { IButtonProps as ButtonProps, Size, ButtonType } from './Button';
3
+ export type { IButtonProps as ButtonProps, ButtonType } from './Button';
4
4
  export { default as Dropdown } from './Dropdown';
5
5
  export type { ActionType, IDropdownProps as DropdownProps, PlacementType } from './Dropdown';
6
6
  export { MenuClickEventHandler } from 'rc-menu/lib/interface';
7
7
  export { default as Menu } from './Menu';
8
8
  export type { IMenuProps as MenuProps } from './Menu';
9
9
  export { default as Input } from './Input';
10
- export type { IInputProps as InputProps, TSize, InputRef, TextAreaRef } from './Input';
10
+ export type { IInputProps as InputProps, InputRef, TextAreaRef } from './Input';
11
11
  export { default as Tabs } from './Tabs';
12
12
  export type { ITabsProps as TabsProps, TabsSize } from './Tabs';
13
13
  export { default as Tooltip } from './Tooltip';
@@ -20,6 +20,8 @@ export { default as Navigator } from './Navigator';
20
20
  export type { INavigatorProps as NavigatorProps, IMenuItem as NavigatorMenu, ISelectedMenuInfo as SelectedMenuInfo, } from './Navigator';
21
21
  export { default as Alert } from './Alert';
22
22
  export type { AlertProps } from './Alert';
23
+ export { default as Card } from './Card';
24
+ export type { CardProps } from './Card';
23
25
  export { default as Col } from './Col';
24
26
  export type { ColProps } from './Col';
25
27
  export type { TypographyProps } from './Typography';
@@ -31,9 +33,9 @@ export { default as DatePicker } from './DatePicker';
31
33
  export type { DatePickerProps } from './DatePicker';
32
34
  export { default as Layout } from './Layout';
33
35
  export type { LayoutProps } from './Layout';
34
- export { default as Message } from './Message';
35
- export type { MessageArgsProps } from './Message';
36
- export { default as Notification } from './Notification';
36
+ export { default as message } from './message';
37
+ export type { MessageArgsProps } from './message';
38
+ export { default as notification } from './notification';
37
39
  export type { TreeProps, AntTreeNodeProps as TreeNodeProps, DataNode as TreeDataNode, } from './Tree';
38
40
  export { default as Tree } from './Tree';
39
41
  export type { SkeletonProps } from './Skeleton';
@@ -44,14 +46,16 @@ export type { SpaceProps } from './Space';
44
46
  export { default as Space } from './Space';
45
47
  export type { SpinProps } from './Spin';
46
48
  export { default as Spin } from './Spin';
47
- export type { SwitchProps } from './Switch';
49
+ export type { ISwitchProps as SwitchProps } from './Switch';
48
50
  export { default as Switch } from './Switch';
49
- export type { StepProps, StepsProps } from './Steps';
51
+ export type { IStepProps as StepProps, IStepsProps as StepsProps } from './Steps';
50
52
  export { default as Steps } from './Steps';
51
53
  export { default as Form } from './Form';
52
54
  export type { FormInstance, FormProps, FormItemProps } from './Form';
53
55
  export { default as Divider } from './Divider';
54
56
  export type { DividerProps } from './Divider';
57
+ export { default as Drawer } from './Drawer';
58
+ export type { DrawerProps } from './Drawer';
55
59
  export { default as Radio } from './Radio';
56
60
  export type { RadioProps, RadioChangeEvent, RadioGroupProps } from './Radio';
57
61
  export { default as Checkbox } from './Checkbox';
@@ -69,3 +73,5 @@ export type { IEmptyProps as EmptyProps } from './Empty';
69
73
  export { default as Avatar } from './Avatar';
70
74
  export type { IAvatarProps as AvatarProps } from './Avatar';
71
75
  export { default as Icon } from './Icon';
76
+ export type { PageHeaderProps } from './PageHeader';
77
+ export { default as PageHeader } from './PageHeader';
package/es/index.js CHANGED
@@ -9,14 +9,15 @@ export { default as Select } from './Select';
9
9
  export { default as Table } from './Table';
10
10
  export { default as Navigator } from './Navigator';
11
11
  export { default as Alert } from './Alert';
12
+ export { default as Card } from './Card';
12
13
  export { default as Col } from './Col';
13
14
  export { default as Typography } from './Typography';
14
15
  export { default as Upload } from './Upload';
15
16
  export { default as ConfigProvider } from './ConfigProvider';
16
17
  export { default as DatePicker } from './DatePicker';
17
18
  export { default as Layout } from './Layout';
18
- export { default as Message } from './Message';
19
- export { default as Notification } from './Notification';
19
+ export { default as message } from './message';
20
+ export { default as notification } from './notification';
20
21
  export { default as Tree } from './Tree';
21
22
  export { default as Skeleton } from './Skeleton';
22
23
  export { default as Row } from './Row';
@@ -26,6 +27,7 @@ export { default as Switch } from './Switch';
26
27
  export { default as Steps } from './Steps';
27
28
  export { default as Form } from './Form';
28
29
  export { default as Divider } from './Divider';
30
+ export { default as Drawer } from './Drawer';
29
31
  export { default as Radio } from './Radio';
30
32
  export { default as Checkbox } from './Checkbox';
31
33
  export { default as Modal } from './Modal';
@@ -34,4 +36,5 @@ export { default as InputNumber } from './InputNumber';
34
36
  export { default as Breadcrumb } from './Breadcrumb';
35
37
  export { default as Empty } from './Empty';
36
38
  export { default as Avatar } from './Avatar';
37
- export { default as Icon } from './Icon';
39
+ export { default as Icon } from './Icon';
40
+ export { default as PageHeader } from './PageHeader';
@@ -0,0 +1,2 @@
1
+ import defaultLocale from './zh_CN';
2
+ export default defaultLocale;
@@ -0,0 +1,2 @@
1
+ import defaultLocale from './zh_CN';
2
+ export default defaultLocale;
@@ -0,0 +1,3 @@
1
+ import type { Locale } from '../locale-provider';
2
+ declare const localeValues: Locale;
3
+ export default localeValues;
@@ -0,0 +1,132 @@
1
+ /* eslint-disable no-template-curly-in-string */
2
+ import Pagination from 'rc-pagination/lib/locale/en_US';
3
+ import Calendar from 'antd/es/calendar/locale/en_US';
4
+ import DatePicker from 'antd/es/date-picker/locale/en_US';
5
+ import TimePicker from 'antd/es/time-picker/locale/en_US';
6
+ var typeTemplate = '${label} is not a valid ${type}';
7
+ var localeValues = {
8
+ locale: 'en',
9
+ Pagination: Pagination,
10
+ DatePicker: DatePicker,
11
+ TimePicker: TimePicker,
12
+ Calendar: Calendar,
13
+ global: {
14
+ placeholder: 'Please select'
15
+ },
16
+ Table: {
17
+ filterTitle: 'Filter menu',
18
+ filterConfirm: 'OK',
19
+ filterReset: 'Reset',
20
+ filterEmptyText: 'No filters',
21
+ filterCheckall: 'Select all items',
22
+ filterSearchPlaceholder: 'Search in filters',
23
+ emptyText: 'No data',
24
+ selectAll: 'Select current page',
25
+ selectInvert: 'Invert current page',
26
+ selectNone: 'Clear all data',
27
+ selectionAll: 'Select all data',
28
+ sortTitle: 'Sort',
29
+ expand: 'Expand row',
30
+ collapse: 'Collapse row',
31
+ triggerDesc: 'Click to sort descending',
32
+ triggerAsc: 'Click to sort ascending',
33
+ cancelSort: 'Click to cancel sorting'
34
+ },
35
+ Modal: {
36
+ okText: 'OK',
37
+ cancelText: 'Cancel',
38
+ justOkText: 'OK'
39
+ },
40
+ Popconfirm: {
41
+ okText: 'OK',
42
+ cancelText: 'Cancel'
43
+ },
44
+ Transfer: {
45
+ titles: ['', ''],
46
+ searchPlaceholder: 'Search here',
47
+ itemUnit: 'item',
48
+ itemsUnit: 'items',
49
+ remove: 'Remove',
50
+ selectCurrent: 'Select current page',
51
+ removeCurrent: 'Remove current page',
52
+ selectAll: 'Select all data',
53
+ removeAll: 'Remove all data',
54
+ selectInvert: 'Invert current page'
55
+ },
56
+ Upload: {
57
+ uploading: 'Uploading...',
58
+ removeFile: 'Remove file',
59
+ uploadError: 'Upload error',
60
+ previewFile: 'Preview file',
61
+ downloadFile: 'Download file'
62
+ },
63
+ Empty: {
64
+ description: 'No Data'
65
+ },
66
+ Icon: {
67
+ icon: 'icon'
68
+ },
69
+ Text: {
70
+ edit: 'Edit',
71
+ copy: 'Copy',
72
+ copied: 'Copied',
73
+ expand: 'Expand'
74
+ },
75
+ PageHeader: {
76
+ back: 'Back'
77
+ },
78
+ Form: {
79
+ optional: '(optional)',
80
+ defaultValidateMessages: {
81
+ default: 'Field validation error for ${label}',
82
+ required: 'Please enter ${label}',
83
+ enum: '${label} must be one of [${enum}]',
84
+ whitespace: '${label} cannot be a blank character',
85
+ date: {
86
+ format: '${label} date format is invalid',
87
+ parse: '${label} cannot be converted to a date',
88
+ invalid: '${label} is an invalid date'
89
+ },
90
+ types: {
91
+ string: typeTemplate,
92
+ method: typeTemplate,
93
+ array: typeTemplate,
94
+ object: typeTemplate,
95
+ number: typeTemplate,
96
+ date: typeTemplate,
97
+ boolean: typeTemplate,
98
+ integer: typeTemplate,
99
+ float: typeTemplate,
100
+ regexp: typeTemplate,
101
+ email: typeTemplate,
102
+ url: typeTemplate,
103
+ hex: typeTemplate
104
+ },
105
+ string: {
106
+ len: '${label} must be ${len} characters',
107
+ min: '${label} must be at least ${min} characters',
108
+ max: '${label} must be up to ${max} characters',
109
+ range: '${label} must be between ${min}-${max} characters'
110
+ },
111
+ number: {
112
+ len: '${label} must be equal to ${len}',
113
+ min: '${label} must be minimum ${min}',
114
+ max: '${label} must be maximum ${max}',
115
+ range: '${label} must be between ${min}-${max}'
116
+ },
117
+ array: {
118
+ len: 'Must be ${len} ${label}',
119
+ min: 'At least ${min} ${label}',
120
+ max: 'At most ${max} ${label}',
121
+ range: 'The amount of ${label} must be between ${min}-${max}'
122
+ },
123
+ pattern: {
124
+ mismatch: '${label} does not match the pattern ${pattern}'
125
+ }
126
+ }
127
+ },
128
+ Image: {
129
+ preview: 'Preview'
130
+ }
131
+ };
132
+ export default localeValues;
@@ -1,2 +1,3 @@
1
- import zhCN from 'antd/es/locale/zh_CN';
2
- export default zhCN;
1
+ import type { Locale } from '../locale-provider';
2
+ declare const localeValues: Locale;
3
+ export default localeValues;
@@ -1,2 +1,131 @@
1
- import zhCN from 'antd/es/locale/zh_CN';
2
- export default zhCN;
1
+ /* eslint-disable no-template-curly-in-string */
2
+ import Pagination from 'rc-pagination/lib/locale/zh_CN';
3
+ import Calendar from 'antd/es/calendar/locale/zh_CN';
4
+ import DatePicker from 'antd/es/date-picker/locale/zh_CN';
5
+ import TimePicker from 'antd/es/time-picker/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 components
14
+ global: {
15
+ placeholder: '请选择'
16
+ },
17
+ Table: {
18
+ filterTitle: '筛选',
19
+ filterConfirm: '确定',
20
+ filterReset: '重置',
21
+ filterEmptyText: '无筛选项',
22
+ filterCheckall: '全选',
23
+ filterSearchPlaceholder: '在筛选项中搜索',
24
+ selectAll: '全选当页',
25
+ selectInvert: '反选当页',
26
+ selectNone: '清空所有',
27
+ selectionAll: '全选所有',
28
+ sortTitle: '排序',
29
+ expand: '展开行',
30
+ collapse: '关闭行',
31
+ triggerDesc: '点击降序',
32
+ triggerAsc: '点击升序',
33
+ cancelSort: '取消排序'
34
+ },
35
+ Modal: {
36
+ okText: '确定',
37
+ cancelText: '取消',
38
+ justOkText: '知道了'
39
+ },
40
+ Popconfirm: {
41
+ cancelText: '取消',
42
+ okText: '确定'
43
+ },
44
+ Transfer: {
45
+ searchPlaceholder: '请输入搜索内容',
46
+ itemUnit: '项',
47
+ itemsUnit: '项',
48
+ remove: '删除',
49
+ selectCurrent: '全选当页',
50
+ removeCurrent: '删除当页',
51
+ selectAll: '全选所有',
52
+ removeAll: '删除全部',
53
+ selectInvert: '反选当页'
54
+ },
55
+ Upload: {
56
+ uploading: '文件上传中',
57
+ removeFile: '删除文件',
58
+ uploadError: '上传错误',
59
+ previewFile: '预览文件',
60
+ downloadFile: '下载文件'
61
+ },
62
+ Empty: {
63
+ description: '暂无数据'
64
+ },
65
+ Icon: {
66
+ icon: '图标'
67
+ },
68
+ Text: {
69
+ edit: '编辑',
70
+ copy: '复制',
71
+ copied: '复制成功',
72
+ expand: '展开'
73
+ },
74
+ PageHeader: {
75
+ back: '返回'
76
+ },
77
+ Form: {
78
+ optional: '(可选)',
79
+ defaultValidateMessages: {
80
+ default: '字段验证错误${label}',
81
+ required: '请输入${label}',
82
+ enum: '${label}必须是其中一个[${enum}]',
83
+ whitespace: '${label}不能为空字符',
84
+ date: {
85
+ format: '${label}日期格式无效',
86
+ parse: '${label}不能转换为日期',
87
+ invalid: '${label}是一个无效日期'
88
+ },
89
+ types: {
90
+ string: typeTemplate,
91
+ method: typeTemplate,
92
+ array: typeTemplate,
93
+ object: typeTemplate,
94
+ number: typeTemplate,
95
+ date: typeTemplate,
96
+ boolean: typeTemplate,
97
+ integer: typeTemplate,
98
+ float: typeTemplate,
99
+ regexp: typeTemplate,
100
+ email: typeTemplate,
101
+ url: typeTemplate,
102
+ hex: typeTemplate
103
+ },
104
+ string: {
105
+ len: '${label}须为${len}个字符',
106
+ min: '${label}最少${min}个字符',
107
+ max: '${label}最多${max}个字符',
108
+ range: '${label}须在${min}-${max}字符之间'
109
+ },
110
+ number: {
111
+ len: '${label}必须等于${len}',
112
+ min: '${label}最小值为${min}',
113
+ max: '${label}最大值为${max}',
114
+ range: '${label}须在${min}-${max}之间'
115
+ },
116
+ array: {
117
+ len: '须为${len}个${label}',
118
+ min: '最少${min}个${label}',
119
+ max: '最多${max}个${label}',
120
+ range: '${label}数量须在${min}-${max}之间'
121
+ },
122
+ pattern: {
123
+ mismatch: '${label}与模式不匹配${pattern}'
124
+ }
125
+ }
126
+ },
127
+ Image: {
128
+ preview: '预览'
129
+ }
130
+ };
131
+ export default localeValues;
@@ -0,0 +1,4 @@
1
+ import LocaleReceiver, { useLocaleReceiver } from 'antd/es/locale-provider/LocaleReceiver';
2
+ export default LocaleReceiver;
3
+ export type { LocaleComponentName, LocaleReceiverProps, } from 'antd/es/locale-provider/LocaleReceiver';
4
+ export { useLocaleReceiver };
@@ -0,0 +1,3 @@
1
+ import LocaleReceiver, { useLocaleReceiver } from 'antd/es/locale-provider/LocaleReceiver';
2
+ export default LocaleReceiver;
3
+ export { useLocaleReceiver };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { Locale } from '.';
3
+ export declare type LocaleContextProps = Partial<Locale> & {
4
+ exist?: boolean;
5
+ };
6
+ declare const LocaleContext: import("react").Context<LocaleContextProps | undefined>;
7
+ export default LocaleContext;
@@ -0,0 +1,3 @@
1
+ import { createContext } from 'react';
2
+ var LocaleContext = /*#__PURE__*/createContext(undefined);
3
+ export default LocaleContext;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/default';
2
+ export default locale;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/default';
2
+ export default locale;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/en_US';
2
+ export default locale;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/en_US';
2
+ export default locale;
@@ -0,0 +1,61 @@
1
+ import type { ValidateMessages } from 'rc-field-form/lib/interface';
2
+ import * as React from 'react';
3
+ import type { PickerLocale as DatePickerLocale } from 'antd/es/date-picker/generatePicker';
4
+ import type { TransferLocale as TransferLocaleForEmpty } from 'antd/es/empty';
5
+ import type { ModalLocale } from 'antd/es/modal/locale';
6
+ import type { PaginationLocale } from 'antd/es/pagination/Pagination';
7
+ import type { PopconfirmLocale } from 'antd/es/popconfirm';
8
+ import type { TableLocale } from 'antd/es/table/interface';
9
+ import type { TransferLocale } from 'antd/es/transfer';
10
+ import type { UploadLocale } from 'antd/es/upload/interface';
11
+ export declare const ANT_MARK = "internalMark";
12
+ export interface Locale {
13
+ locale: string;
14
+ Pagination?: PaginationLocale;
15
+ DatePicker?: DatePickerLocale;
16
+ TimePicker?: Record<string, any>;
17
+ Calendar?: Record<string, any>;
18
+ Table?: TableLocale;
19
+ Modal?: ModalLocale;
20
+ Popconfirm?: PopconfirmLocale;
21
+ Transfer?: Partial<TransferLocale>;
22
+ Select?: Record<string, any>;
23
+ Upload?: UploadLocale;
24
+ Empty?: TransferLocaleForEmpty;
25
+ global?: Record<string, any>;
26
+ PageHeader?: {
27
+ back: string;
28
+ };
29
+ Icon?: Record<string, any>;
30
+ Text?: {
31
+ edit?: any;
32
+ copy?: any;
33
+ copied?: any;
34
+ expand?: any;
35
+ };
36
+ Form?: {
37
+ optional?: string;
38
+ defaultValidateMessages: ValidateMessages;
39
+ };
40
+ Image?: {
41
+ preview: string;
42
+ };
43
+ }
44
+ export interface LocaleProviderProps {
45
+ locale: Locale;
46
+ children?: React.ReactNode;
47
+ _ANT_MARK__?: string;
48
+ }
49
+ export default class LocaleProvider extends React.Component<LocaleProviderProps, any> {
50
+ static defaultProps: {
51
+ locale: {};
52
+ };
53
+ constructor(props: LocaleProviderProps);
54
+ componentDidMount(): void;
55
+ componentDidUpdate(prevProps: LocaleProviderProps): void;
56
+ componentWillUnmount(): void;
57
+ getMemoizedContextValue: (localeValue: Locale) => Locale & {
58
+ exist?: boolean;
59
+ };
60
+ render(): JSX.Element;
61
+ }
@@ -0,0 +1,102 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+
7
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+
9
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
+
11
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
12
+
13
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
+
15
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+
17
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
+
19
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
20
+
21
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
22
+
23
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
+
25
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
26
+
27
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+
29
+ /* eslint-disable react/static-property-placement */
30
+
31
+ /* eslint-disable @typescript-eslint/no-explicit-any */
32
+
33
+ /* eslint-disable @typescript-eslint/naming-convention */
34
+ import memoizeOne from 'memoize-one';
35
+ import * as React from 'react';
36
+ import warning from 'antd/es/_util/warning';
37
+ import { changeConfirmLocale } from 'antd/es/modal/locale';
38
+ import LocaleContext from './context';
39
+ export var ANT_MARK = 'internalMark';
40
+
41
+ var LocaleProvider = /*#__PURE__*/function (_React$Component) {
42
+ _inherits(LocaleProvider, _React$Component);
43
+
44
+ var _super = _createSuper(LocaleProvider);
45
+
46
+ function LocaleProvider(props) {
47
+ var _this;
48
+
49
+ _classCallCheck(this, LocaleProvider);
50
+
51
+ _this = _super.call(this, props);
52
+ _this.getMemoizedContextValue = memoizeOne(function (localeValue) {
53
+ return _objectSpread(_objectSpread({}, localeValue), {}, {
54
+ exist: true
55
+ });
56
+ });
57
+ changeConfirmLocale(props.locale && props.locale.Modal);
58
+ warning( // eslint-disable-next-line no-underscore-dangle
59
+ props._ANT_MARK__ === ANT_MARK, 'LocaleProvider', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale');
60
+ return _this;
61
+ }
62
+
63
+ _createClass(LocaleProvider, [{
64
+ key: "componentDidMount",
65
+ value: function componentDidMount() {
66
+ changeConfirmLocale(this.props.locale && this.props.locale.Modal);
67
+ }
68
+ }, {
69
+ key: "componentDidUpdate",
70
+ value: function componentDidUpdate(prevProps) {
71
+ var locale = this.props.locale;
72
+
73
+ if (prevProps.locale !== locale) {
74
+ changeConfirmLocale(locale && locale.Modal);
75
+ }
76
+ }
77
+ }, {
78
+ key: "componentWillUnmount",
79
+ value: function componentWillUnmount() {
80
+ changeConfirmLocale();
81
+ }
82
+ }, {
83
+ key: "render",
84
+ value: function render() {
85
+ var _this$props = this.props,
86
+ locale = _this$props.locale,
87
+ children = _this$props.children;
88
+ var contextValue = this.getMemoizedContextValue(locale);
89
+ return /*#__PURE__*/React.createElement(LocaleContext.Provider, {
90
+ value: contextValue
91
+ }, children);
92
+ }
93
+ }]);
94
+
95
+ return LocaleProvider;
96
+ }(React.Component);
97
+
98
+ export { LocaleProvider as default };
99
+ LocaleProvider.defaultProps = {
100
+ // eslint-disable-next-line react/default-props-match-prop-types
101
+ locale: {}
102
+ };
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ // placeholder
2
+ @import '../../style/themes/index';
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/zh_CN';
2
+ export default locale;
@@ -0,0 +1,2 @@
1
+ import locale from '../locale/zh_CN';
2
+ export default locale;
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -2,4 +2,4 @@
2
2
  @import './mixins/index.less';
3
3
  @import './themes/default/scrollBar.less';
4
4
  @import './themes/default/index.less';
5
- @import './mixins/index.less';
5
+ @import './mixins/index.less';