antd-mobile 5.34.0 → 5.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +472 -1560
  2. package/2x/bundle/antd-mobile.cjs.js +7 -7
  3. package/2x/bundle/antd-mobile.es.development.js +473 -1561
  4. package/2x/bundle/antd-mobile.es.js +7287 -8011
  5. package/2x/bundle/antd-mobile.umd.development.js +472 -1560
  6. package/2x/bundle/antd-mobile.umd.js +7 -7
  7. package/2x/bundle/css-vars-patch.css +3 -3
  8. package/2x/bundle/style.css +6 -10
  9. package/2x/cjs/components/button/button.d.ts +3 -3
  10. package/2x/cjs/components/button/button.patch.css +3 -3
  11. package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
  12. package/2x/cjs/components/checkbox/native-input.js +1 -1
  13. package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
  14. package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
  15. package/2x/cjs/components/error-block/create-error-block.js +1 -0
  16. package/2x/cjs/components/error-block/index.d.ts +0 -1
  17. package/2x/cjs/components/error-block/index.js +2 -3
  18. package/2x/cjs/components/form/form-item.js +1 -0
  19. package/2x/cjs/components/form/form.js +2 -2
  20. package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
  21. package/2x/cjs/components/input/input.d.ts +2 -4
  22. package/2x/cjs/components/input/input.js +8 -17
  23. package/2x/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
  24. package/2x/cjs/components/input/useInputHandleKeyDown.js +29 -0
  25. package/2x/cjs/components/picker-view/wheel.js +7 -4
  26. package/2x/cjs/components/popover/index.d.ts +1 -1
  27. package/2x/cjs/components/popover/popover.d.ts +1 -1
  28. package/2x/cjs/components/radio/radio.css +1 -1
  29. package/2x/cjs/components/radio/radio.d.ts +1 -1
  30. package/2x/cjs/components/radio/radio.js +5 -5
  31. package/2x/cjs/components/result-page/result-page.css +5 -5
  32. package/2x/cjs/components/result-page/result-page.d.ts +1 -1
  33. package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
  34. package/2x/cjs/components/swiper/index.d.ts +1 -1
  35. package/2x/cjs/components/swiper/swiper.d.ts +2 -2
  36. package/2x/cjs/components/swiper/swiper.js +5 -1
  37. package/2x/cjs/components/text-area/text-area.css +0 -4
  38. package/2x/cjs/components/text-area/text-area.d.ts +6 -2
  39. package/2x/cjs/components/text-area/text-area.js +9 -1
  40. package/2x/cjs/global/css-vars-patch.css +3 -3
  41. package/2x/cjs/index.d.ts +1 -1
  42. package/2x/cjs/index.js +6 -0
  43. package/2x/cjs/locales/ar-SA.d.ts +139 -0
  44. package/2x/cjs/locales/ar-SA.js +149 -0
  45. package/2x/cjs/locales/de-DE.d.ts +139 -0
  46. package/2x/cjs/locales/de-DE.js +149 -0
  47. package/2x/cjs/locales/hu-HU.d.ts +139 -0
  48. package/2x/cjs/locales/hu-HU.js +148 -0
  49. package/2x/cjs/locales/ms-MY.d.ts +139 -0
  50. package/2x/cjs/locales/ms-MY.js +149 -0
  51. package/2x/cjs/locales/pt-BR.d.ts +139 -0
  52. package/2x/cjs/locales/pt-BR.js +144 -0
  53. package/2x/cjs/locales/th-TH.d.ts +139 -0
  54. package/2x/cjs/locales/th-TH.js +149 -0
  55. package/2x/cjs/locales/vi-VN.d.ts +139 -0
  56. package/2x/cjs/locales/vi-VN.js +149 -0
  57. package/2x/cjs/locales/zh-CN.d.ts +2 -138
  58. package/2x/cjs/locales/zh-CN.js +2 -4
  59. package/2x/cjs/locales/zh-CN.test.d.ts +1 -0
  60. package/2x/cjs/locales/zh-CN.test.js +19 -0
  61. package/2x/cjs/utils/with-default-props.js +8 -9
  62. package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
  63. package/2x/cjs/utils/with-stop-propagation.js +2 -1
  64. package/2x/es/components/button/button.d.ts +3 -3
  65. package/2x/es/components/button/button.patch.css +3 -3
  66. package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
  67. package/2x/es/components/checkbox/native-input.js +1 -1
  68. package/2x/es/components/config-provider/config-provider.d.ts +3 -2
  69. package/2x/es/components/error-block/create-error-block.d.ts +1 -0
  70. package/2x/es/components/error-block/create-error-block.js +1 -0
  71. package/2x/es/components/error-block/index.d.ts +0 -1
  72. package/2x/es/components/error-block/index.js +0 -1
  73. package/2x/es/components/form/form-item.js +1 -0
  74. package/2x/es/components/form/form.js +2 -2
  75. package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
  76. package/2x/es/components/input/input.d.ts +2 -4
  77. package/2x/es/components/input/input.js +8 -17
  78. package/2x/es/components/input/useInputHandleKeyDown.d.ts +8 -0
  79. package/2x/es/components/input/useInputHandleKeyDown.js +23 -0
  80. package/2x/es/components/picker-view/wheel.js +6 -3
  81. package/2x/es/components/popover/index.d.ts +1 -1
  82. package/2x/es/components/popover/popover.d.ts +1 -1
  83. package/2x/es/components/radio/radio.css +1 -1
  84. package/2x/es/components/radio/radio.d.ts +1 -1
  85. package/2x/es/components/radio/radio.js +4 -4
  86. package/2x/es/components/result-page/result-page.css +5 -5
  87. package/2x/es/components/result-page/result-page.d.ts +1 -1
  88. package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
  89. package/2x/es/components/swiper/index.d.ts +1 -1
  90. package/2x/es/components/swiper/swiper.d.ts +2 -2
  91. package/2x/es/components/swiper/swiper.js +5 -1
  92. package/2x/es/components/text-area/text-area.css +0 -4
  93. package/2x/es/components/text-area/text-area.d.ts +6 -2
  94. package/2x/es/components/text-area/text-area.js +9 -1
  95. package/2x/es/global/css-vars-patch.css +3 -3
  96. package/2x/es/index.d.ts +1 -1
  97. package/2x/es/index.js +1 -1
  98. package/2x/es/locales/ar-SA.d.ts +139 -0
  99. package/2x/es/locales/ar-SA.js +142 -0
  100. package/2x/es/locales/de-DE.d.ts +139 -0
  101. package/2x/es/locales/de-DE.js +142 -0
  102. package/2x/es/locales/hu-HU.d.ts +139 -0
  103. package/2x/es/locales/hu-HU.js +140 -0
  104. package/2x/es/locales/ms-MY.d.ts +139 -0
  105. package/2x/es/locales/ms-MY.js +142 -0
  106. package/2x/es/locales/pt-BR.d.ts +139 -0
  107. package/2x/es/locales/pt-BR.js +137 -0
  108. package/2x/es/locales/th-TH.d.ts +139 -0
  109. package/2x/es/locales/th-TH.js +142 -0
  110. package/2x/es/locales/vi-VN.d.ts +139 -0
  111. package/2x/es/locales/vi-VN.js +142 -0
  112. package/2x/es/locales/zh-CN.d.ts +2 -138
  113. package/2x/es/locales/zh-CN.js +2 -4
  114. package/2x/es/locales/zh-CN.test.d.ts +1 -0
  115. package/2x/es/locales/zh-CN.test.js +16 -0
  116. package/2x/es/utils/with-default-props.js +8 -8
  117. package/2x/es/utils/with-stop-propagation.d.ts +1 -1
  118. package/2x/es/utils/with-stop-propagation.js +2 -1
  119. package/2x/package.json +38 -21
  120. package/bundle/antd-mobile.cjs.development.js +472 -1560
  121. package/bundle/antd-mobile.cjs.js +7 -7
  122. package/bundle/antd-mobile.compatible.umd.js +1 -1
  123. package/bundle/antd-mobile.es.development.js +473 -1561
  124. package/bundle/antd-mobile.es.js +7287 -8011
  125. package/bundle/antd-mobile.umd.development.js +472 -1560
  126. package/bundle/antd-mobile.umd.js +7 -7
  127. package/bundle/css-vars-patch.css +3 -3
  128. package/bundle/style.css +1 -1
  129. package/cjs/components/button/button.d.ts +3 -3
  130. package/cjs/components/button/button.patch.css +3 -3
  131. package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
  132. package/cjs/components/checkbox/native-input.js +1 -1
  133. package/cjs/components/config-provider/config-provider.d.ts +3 -2
  134. package/cjs/components/error-block/create-error-block.d.ts +1 -0
  135. package/cjs/components/error-block/create-error-block.js +1 -0
  136. package/cjs/components/error-block/index.d.ts +0 -1
  137. package/cjs/components/error-block/index.js +2 -3
  138. package/cjs/components/form/form-item.js +1 -0
  139. package/cjs/components/form/form.js +2 -2
  140. package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
  141. package/cjs/components/input/input.d.ts +2 -4
  142. package/cjs/components/input/input.js +8 -17
  143. package/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
  144. package/cjs/components/input/useInputHandleKeyDown.js +29 -0
  145. package/cjs/components/picker-view/wheel.js +7 -4
  146. package/cjs/components/popover/index.d.ts +1 -1
  147. package/cjs/components/popover/popover.d.ts +1 -1
  148. package/cjs/components/radio/radio.css +1 -1
  149. package/cjs/components/radio/radio.d.ts +1 -1
  150. package/cjs/components/radio/radio.js +5 -5
  151. package/cjs/components/result-page/result-page.css +5 -5
  152. package/cjs/components/result-page/result-page.d.ts +1 -1
  153. package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
  154. package/cjs/components/swiper/index.d.ts +1 -1
  155. package/cjs/components/swiper/swiper.d.ts +2 -2
  156. package/cjs/components/swiper/swiper.js +5 -1
  157. package/cjs/components/text-area/text-area.css +0 -3
  158. package/cjs/components/text-area/text-area.d.ts +6 -2
  159. package/cjs/components/text-area/text-area.js +9 -1
  160. package/cjs/global/css-vars-patch.css +3 -3
  161. package/cjs/index.d.ts +1 -1
  162. package/cjs/index.js +6 -0
  163. package/cjs/locales/ar-SA.d.ts +139 -0
  164. package/cjs/locales/ar-SA.js +149 -0
  165. package/cjs/locales/de-DE.d.ts +139 -0
  166. package/cjs/locales/de-DE.js +149 -0
  167. package/cjs/locales/hu-HU.d.ts +139 -0
  168. package/cjs/locales/hu-HU.js +148 -0
  169. package/cjs/locales/ms-MY.d.ts +139 -0
  170. package/cjs/locales/ms-MY.js +149 -0
  171. package/cjs/locales/pt-BR.d.ts +139 -0
  172. package/cjs/locales/pt-BR.js +144 -0
  173. package/cjs/locales/th-TH.d.ts +139 -0
  174. package/cjs/locales/th-TH.js +149 -0
  175. package/cjs/locales/vi-VN.d.ts +139 -0
  176. package/cjs/locales/vi-VN.js +149 -0
  177. package/cjs/locales/zh-CN.d.ts +2 -138
  178. package/cjs/locales/zh-CN.js +2 -4
  179. package/cjs/locales/zh-CN.test.d.ts +1 -0
  180. package/cjs/locales/zh-CN.test.js +19 -0
  181. package/cjs/utils/with-default-props.js +8 -9
  182. package/cjs/utils/with-stop-propagation.d.ts +1 -1
  183. package/cjs/utils/with-stop-propagation.js +2 -1
  184. package/es/components/button/button.d.ts +3 -3
  185. package/es/components/button/button.patch.css +3 -3
  186. package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
  187. package/es/components/checkbox/native-input.js +1 -1
  188. package/es/components/config-provider/config-provider.d.ts +3 -2
  189. package/es/components/error-block/create-error-block.d.ts +1 -0
  190. package/es/components/error-block/create-error-block.js +1 -0
  191. package/es/components/error-block/index.d.ts +0 -1
  192. package/es/components/error-block/index.js +0 -1
  193. package/es/components/form/form-item.js +1 -0
  194. package/es/components/form/form.js +2 -2
  195. package/es/components/infinite-scroll/infinite-scroll.js +8 -4
  196. package/es/components/input/input.d.ts +2 -4
  197. package/es/components/input/input.js +8 -17
  198. package/es/components/input/useInputHandleKeyDown.d.ts +8 -0
  199. package/es/components/input/useInputHandleKeyDown.js +23 -0
  200. package/es/components/picker-view/wheel.js +6 -3
  201. package/es/components/popover/index.d.ts +1 -1
  202. package/es/components/popover/popover.d.ts +1 -1
  203. package/es/components/radio/radio.css +1 -1
  204. package/es/components/radio/radio.d.ts +1 -1
  205. package/es/components/radio/radio.js +4 -4
  206. package/es/components/result-page/result-page.css +5 -5
  207. package/es/components/result-page/result-page.d.ts +1 -1
  208. package/es/components/swipe-action/swipe-action.d.ts +1 -1
  209. package/es/components/swiper/index.d.ts +1 -1
  210. package/es/components/swiper/swiper.d.ts +2 -2
  211. package/es/components/swiper/swiper.js +5 -1
  212. package/es/components/text-area/text-area.css +0 -3
  213. package/es/components/text-area/text-area.d.ts +6 -2
  214. package/es/components/text-area/text-area.js +9 -1
  215. package/es/global/css-vars-patch.css +3 -3
  216. package/es/index.d.ts +1 -1
  217. package/es/index.js +1 -1
  218. package/es/locales/ar-SA.d.ts +139 -0
  219. package/es/locales/ar-SA.js +142 -0
  220. package/es/locales/de-DE.d.ts +139 -0
  221. package/es/locales/de-DE.js +142 -0
  222. package/es/locales/hu-HU.d.ts +139 -0
  223. package/es/locales/hu-HU.js +140 -0
  224. package/es/locales/ms-MY.d.ts +139 -0
  225. package/es/locales/ms-MY.js +142 -0
  226. package/es/locales/pt-BR.d.ts +139 -0
  227. package/es/locales/pt-BR.js +137 -0
  228. package/es/locales/th-TH.d.ts +139 -0
  229. package/es/locales/th-TH.js +142 -0
  230. package/es/locales/vi-VN.d.ts +139 -0
  231. package/es/locales/vi-VN.js +142 -0
  232. package/es/locales/zh-CN.d.ts +2 -138
  233. package/es/locales/zh-CN.js +2 -4
  234. package/es/locales/zh-CN.test.d.ts +1 -0
  235. package/es/locales/zh-CN.test.js +16 -0
  236. package/es/utils/with-default-props.js +8 -8
  237. package/es/utils/with-stop-propagation.d.ts +1 -1
  238. package/es/utils/with-stop-propagation.js +2 -1
  239. package/package.json +38 -21
  240. package/umd/antd-mobile.js +1 -1
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ReactNode } from 'react';
3
3
  import { NativeProps } from '../../utils/native-props';
4
- export declare type TextAreaProps = Pick<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'autoComplete' | 'autoFocus' | 'disabled' | 'readOnly' | 'name' | 'onFocus' | 'onBlur' | 'onCompositionStart' | 'onCompositionEnd' | 'onClick'> & {
4
+ export declare type TextAreaProps = Pick<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'autoComplete' | 'autoFocus' | 'disabled' | 'readOnly' | 'name' | 'onFocus' | 'onBlur' | 'onCompositionStart' | 'onCompositionEnd' | 'onClick' | 'onKeyDown'> & {
5
5
  onChange?: (val: string) => void;
6
6
  value?: string;
7
7
  defaultValue?: string;
@@ -14,6 +14,8 @@ export declare type TextAreaProps = Pick<React.DetailedHTMLProps<React.TextareaH
14
14
  maxRows?: number;
15
15
  };
16
16
  id?: string;
17
+ onEnterPress?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
18
+ enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
17
19
  } & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--disabled-color' | '--text-align' | '--count-text-align'>;
18
20
  export declare type TextAreaRef = {
19
21
  clear: () => void;
@@ -21,7 +23,7 @@ export declare type TextAreaRef = {
21
23
  blur: () => void;
22
24
  nativeElement: HTMLTextAreaElement | null;
23
25
  };
24
- export declare const TextArea: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "onClick" | "disabled" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "autoFocus" | "name" | "readOnly" | "autoComplete"> & {
26
+ export declare const TextArea: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "onClick" | "disabled" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "autoFocus" | "name" | "readOnly" | "autoComplete"> & {
25
27
  onChange?: ((val: string) => void) | undefined;
26
28
  value?: string | undefined;
27
29
  defaultValue?: string | undefined;
@@ -34,6 +36,8 @@ export declare const TextArea: React.ForwardRefExoticComponent<Pick<React.Detail
34
36
  maxRows?: number | undefined;
35
37
  } | undefined;
36
38
  id?: string | undefined;
39
+ onEnterPress?: ((e: React.KeyboardEvent<HTMLTextAreaElement>) => void) | undefined;
40
+ enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
37
41
  } & {
38
42
  className?: string | undefined;
39
43
  style?: (React.CSSProperties & Partial<Record<"--color" | "--font-size" | "--placeholder-color" | "--text-align" | "--disabled-color" | "--count-text-align", string>>) | undefined;
@@ -11,6 +11,7 @@ var _nativeProps = require("../../utils/native-props");
11
11
  var _usePropsValue = require("../../utils/use-props-value");
12
12
  var _withDefaultProps = require("../../utils/with-default-props");
13
13
  var _devLog = require("../../utils/dev-log");
14
+ var _useInputHandleKeyDown = _interopRequireDefault(require("../../components/input/useInputHandleKeyDown"));
14
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
17
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -39,6 +40,12 @@ const TextArea = (0, _react.forwardRef)((p, ref) => {
39
40
  const heightRef = (0, _react.useRef)('auto');
40
41
  // https://github.com/ant-design/ant-design-mobile/issues/6051
41
42
  const hiddenTextAreaRef = (0, _react.useRef)(null);
43
+ const handleKeydown = (0, _useInputHandleKeyDown.default)({
44
+ onEnterPress: props.onEnterPress,
45
+ onKeyDown: props.onKeyDown,
46
+ nativeInputRef: nativeTextAreaRef,
47
+ enterKeyHint: props.enterKeyHint
48
+ });
42
49
  (0, _react.useImperativeHandle)(ref, () => ({
43
50
  clear: () => {
44
51
  setValue('');
@@ -132,7 +139,8 @@ const TextArea = (0, _react.forwardRef)((p, ref) => {
132
139
  name: props.name,
133
140
  onFocus: props.onFocus,
134
141
  onBlur: props.onBlur,
135
- onClick: props.onClick
142
+ onClick: props.onClick,
143
+ onKeyDown: handleKeydown
136
144
  }), count, autoSize && _react.default.createElement("textarea", {
137
145
  ref: hiddenTextAreaRef,
138
146
  className: `${classPrefix}-element ${classPrefix}-element-hidden`,
@@ -59,13 +59,13 @@
59
59
  }
60
60
 
61
61
  .adm-button-danger {
62
- background-color: #00b578;
63
- border-color: #00b578;
62
+ background-color: #ff3141;
63
+ border-color: #ff3141;
64
64
  }
65
65
 
66
66
  .adm-button-danger.adm-button-fill-outline,
67
67
  .adm-button-danger.adm-button-fill-none {
68
- color: #00b578;
68
+ color: #ff3141;
69
69
  }
70
70
 
71
71
  .adm-button-warning {
package/2x/cjs/index.d.ts CHANGED
@@ -36,7 +36,7 @@ export { default as Checkbox } from './components/checkbox';
36
36
  export type { CheckboxProps, CheckboxGroupProps, CheckboxRef, } from './components/checkbox';
37
37
  export { default as Collapse } from './components/collapse';
38
38
  export type { CollapseProps, CollapsePanelProps } from './components/collapse';
39
- export { default as ConfigProvider } from './components/config-provider';
39
+ export { default as ConfigProvider, useConfig } from './components/config-provider';
40
40
  export type { ConfigProviderProps } from './components/config-provider';
41
41
  export { default as DatePicker } from './components/date-picker';
42
42
  export type { DatePickerProps, DatePickerRef } from './components/date-picker';
package/2x/cjs/index.js CHANGED
@@ -519,6 +519,12 @@ Object.defineProperty(exports, "setDefaultConfig", {
519
519
  return _configProvider.setDefaultConfig;
520
520
  }
521
521
  });
522
+ Object.defineProperty(exports, "useConfig", {
523
+ enumerable: true,
524
+ get: function () {
525
+ return _configProvider.useConfig;
526
+ }
527
+ });
522
528
  require("./global");
523
529
  var _configProvider = _interopRequireWildcard(require("./components/config-provider"));
524
530
  var _actionSheet = _interopRequireDefault(require("./components/action-sheet"));
@@ -0,0 +1,139 @@
1
+ declare const arSA: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ title: string;
11
+ confirm: string;
12
+ start: string;
13
+ end: string;
14
+ today: string;
15
+ markItems: string[];
16
+ yearAndMonth: string;
17
+ };
18
+ Cascader: {
19
+ placeholder: string;
20
+ };
21
+ Dialog: {
22
+ ok: string;
23
+ };
24
+ DatePicker: {
25
+ tillNow: string;
26
+ };
27
+ ErrorBlock: {
28
+ default: {
29
+ title: string;
30
+ description: string;
31
+ };
32
+ busy: {
33
+ title: string;
34
+ description: string;
35
+ };
36
+ disconnected: {
37
+ title: string;
38
+ description: string;
39
+ };
40
+ empty: {
41
+ title: string;
42
+ description: string;
43
+ };
44
+ };
45
+ Form: {
46
+ required: string;
47
+ optional: string;
48
+ defaultValidateMessages: {
49
+ default: string;
50
+ required: string;
51
+ enum: string;
52
+ whitespace: string;
53
+ date: {
54
+ format: string;
55
+ parse: string;
56
+ invalid: string;
57
+ };
58
+ types: {
59
+ string: string;
60
+ method: string;
61
+ array: string;
62
+ object: string;
63
+ number: string;
64
+ date: string;
65
+ boolean: string;
66
+ integer: string;
67
+ float: string;
68
+ regexp: string;
69
+ email: string;
70
+ url: string;
71
+ hex: string;
72
+ };
73
+ string: {
74
+ len: string;
75
+ min: string;
76
+ max: string;
77
+ range: string;
78
+ };
79
+ number: {
80
+ len: string;
81
+ min: string;
82
+ max: string;
83
+ range: string;
84
+ };
85
+ array: {
86
+ len: string;
87
+ min: string;
88
+ max: string;
89
+ range: string;
90
+ };
91
+ pattern: {
92
+ mismatch: string;
93
+ };
94
+ };
95
+ };
96
+ ImageUploader: {
97
+ uploading: string;
98
+ upload: string;
99
+ };
100
+ InfiniteScroll: {
101
+ noMore: string;
102
+ failedToLoad: string;
103
+ retry: string;
104
+ };
105
+ Input: {
106
+ clear: string;
107
+ };
108
+ Mask: {
109
+ name: string;
110
+ };
111
+ Modal: {
112
+ ok: string;
113
+ };
114
+ PasscodeInput: {
115
+ name: string;
116
+ };
117
+ PullToRefresh: {
118
+ pulling: string;
119
+ canRelease: string;
120
+ complete: string;
121
+ };
122
+ SearchBar: {
123
+ name: string;
124
+ };
125
+ Slider: {
126
+ name: string;
127
+ };
128
+ Stepper: {
129
+ decrease: string;
130
+ increase: string;
131
+ };
132
+ Switch: {
133
+ name: string;
134
+ };
135
+ Selector: {
136
+ name: string;
137
+ };
138
+ };
139
+ export default arSA;
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _mergeLocale = require("../utils/merge-locale");
8
+ var _base = require("./base");
9
+ const typeTemplate = '${label} غير صالح ${type}';
10
+ const arSA = (0, _mergeLocale.mergeLocale)(_base.base, {
11
+ 'locale': 'ar-SA',
12
+ 'common': {
13
+ 'confirm': 'نعم',
14
+ 'cancel': 'إلغاء',
15
+ 'loading': 'جار التحميل',
16
+ 'close': 'إغلاق'
17
+ },
18
+ 'Calendar': {
19
+ 'title': 'اختيار التاريخ',
20
+ 'confirm': 'تأكيد',
21
+ 'start': 'يبدأ',
22
+ 'end': 'ينهي',
23
+ 'today': 'اليوم',
24
+ 'markItems': ['واحد', 'اثنين', 'ثلاثة', 'أربعة', 'خمسة', 'ستة', 'يوم'],
25
+ 'yearAndMonth': '${year} سنة ${month} شهر'
26
+ },
27
+ 'Cascader': {
28
+ 'placeholder': 'اختر من فضلك'
29
+ },
30
+ 'Dialog': {
31
+ 'ok': 'عرفت'
32
+ },
33
+ 'DatePicker': {
34
+ 'tillNow': 'إلى اليوم'
35
+ },
36
+ 'ErrorBlock': {
37
+ 'default': {
38
+ 'title': 'تواجه الصفحة بعض المشكلات البسيطة',
39
+ 'description': 'حاول لاحقًا'
40
+ },
41
+ 'busy': {
42
+ 'title': 'الازدحام في الأمام',
43
+ 'description': 'حاول التجديد'
44
+ },
45
+ 'disconnected': {
46
+ 'title': 'شبكة مشغولة',
47
+ 'description': 'مرر أصابعك وساعد ف الإصلاح'
48
+ },
49
+ 'empty': {
50
+ 'title': 'لم أتمكن من العثور على ما تحتاجه',
51
+ 'description': 'البحث عن شيء آخر'
52
+ }
53
+ },
54
+ 'Form': {
55
+ 'required': 'مطلوب',
56
+ 'optional': 'اختياري',
57
+ 'defaultValidateMessages': {
58
+ 'default': 'خطأ في التحقق من صحة الكلمات ${label}',
59
+ 'required': 'يرجى إدخال ${label}',
60
+ 'enum': '${label} يجب أن يكون واحدًا منهم [ ${enum} ]',
61
+ 'whitespace': '${label} لا يمكن أن يكون حرفًا فارغًا',
62
+ 'date': {
63
+ 'format': '${label} تنسيق التاريخ غير صالح',
64
+ 'parse': '${label} لا يمكن تحويله إلى تاريخ',
65
+ 'invalid': '${label} تاريخ غير صالح'
66
+ },
67
+ 'types': {
68
+ 'string': typeTemplate,
69
+ 'method': typeTemplate,
70
+ 'array': typeTemplate,
71
+ 'object': typeTemplate,
72
+ 'number': typeTemplate,
73
+ 'date': typeTemplate,
74
+ 'boolean': typeTemplate,
75
+ 'integer': typeTemplate,
76
+ 'float': typeTemplate,
77
+ 'regexp': typeTemplate,
78
+ 'email': typeTemplate,
79
+ 'url': typeTemplate,
80
+ 'hex': typeTemplate
81
+ },
82
+ 'string': {
83
+ 'len': '${label} يجب أن يكون عدد الأحرف ${len}',
84
+ 'min': '${label} أحرف على الأقل ${min}',
85
+ 'max': '${label} الحد الأقصى لعدد الأحرف ${max}',
86
+ 'range': '${label} يجب أن يكون بين ${min} - ${max} حرفًا'
87
+ },
88
+ 'number': {
89
+ 'len': '${label} يجب أن يساوي ${len}',
90
+ 'min': '${label}الحد الأدنى للقيمة هو ${min}',
91
+ 'max': '${label}القيمة القصوى هي ${max}',
92
+ 'range': '${label} يجب أن يكون بين ${min} - ${max}'
93
+ },
94
+ 'array': {
95
+ 'len': 'يجب أن يكون ${len} ${label}',
96
+ 'min': 'على الأقل ${min} ${label}',
97
+ 'max': 'الحد الأقصى ${max} ${label}',
98
+ 'range': '${label} يجب أن تكون الكمية بين ${min} - ${max}'
99
+ },
100
+ 'pattern': {
101
+ 'mismatch': '${label} لا يتطابق مع النمط ${pattern}'
102
+ }
103
+ }
104
+ },
105
+ 'ImageUploader': {
106
+ 'uploading': 'جارٍ التحميل...',
107
+ 'upload': 'تحميل'
108
+ },
109
+ 'InfiniteScroll': {
110
+ 'noMore': '-لا يوجد أكثر-',
111
+ 'failedToLoad': 'فشل التحميل',
112
+ 'retry': 'إعادة التحميل'
113
+ },
114
+ 'Input': {
115
+ 'clear': 'إزالة'
116
+ },
117
+ 'Mask': {
118
+ 'name': 'قناع الخلفية'
119
+ },
120
+ 'Modal': {
121
+ 'ok': 'عرفت'
122
+ },
123
+ 'PasscodeInput': {
124
+ 'name': 'مربع إدخال كلمة المرور'
125
+ },
126
+ 'PullToRefresh': {
127
+ 'pulling': 'اسحب إلى الأسفل للتحديث',
128
+ 'canRelease': 'حرر للتحديث على الفور',
129
+ 'complete': 'تم التحديث بنجاح'
130
+ },
131
+ 'SearchBar': {
132
+ 'name': 'شريط البحث'
133
+ },
134
+ 'Slider': {
135
+ 'name': 'شريط الإدخال المنزلق'
136
+ },
137
+ 'Stepper': {
138
+ 'decrease': 'يقلل',
139
+ 'increase': 'يزيد'
140
+ },
141
+ 'Switch': {
142
+ 'name': 'زر الفتح والإغلاق'
143
+ },
144
+ 'Selector': {
145
+ 'name': 'اختر مجموعة'
146
+ }
147
+ });
148
+ var _default = arSA;
149
+ exports.default = _default;
@@ -0,0 +1,139 @@
1
+ declare const deDE: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ title: string;
11
+ confirm: string;
12
+ start: string;
13
+ end: string;
14
+ today: string;
15
+ markItems: string[];
16
+ yearAndMonth: string;
17
+ };
18
+ Cascader: {
19
+ placeholder: string;
20
+ };
21
+ Dialog: {
22
+ ok: string;
23
+ };
24
+ DatePicker: {
25
+ tillNow: string;
26
+ };
27
+ ErrorBlock: {
28
+ default: {
29
+ title: string;
30
+ description: string;
31
+ };
32
+ busy: {
33
+ title: string;
34
+ description: string;
35
+ };
36
+ disconnected: {
37
+ title: string;
38
+ description: string;
39
+ };
40
+ empty: {
41
+ title: string;
42
+ description: string;
43
+ };
44
+ };
45
+ Form: {
46
+ required: string;
47
+ optional: string;
48
+ defaultValidateMessages: {
49
+ default: string;
50
+ required: string;
51
+ enum: string;
52
+ whitespace: string;
53
+ date: {
54
+ format: string;
55
+ parse: string;
56
+ invalid: string;
57
+ };
58
+ types: {
59
+ string: string;
60
+ method: string;
61
+ array: string;
62
+ object: string;
63
+ number: string;
64
+ date: string;
65
+ boolean: string;
66
+ integer: string;
67
+ float: string;
68
+ regexp: string;
69
+ email: string;
70
+ url: string;
71
+ hex: string;
72
+ };
73
+ string: {
74
+ len: string;
75
+ min: string;
76
+ max: string;
77
+ range: string;
78
+ };
79
+ number: {
80
+ len: string;
81
+ min: string;
82
+ max: string;
83
+ range: string;
84
+ };
85
+ array: {
86
+ len: string;
87
+ min: string;
88
+ max: string;
89
+ range: string;
90
+ };
91
+ pattern: {
92
+ mismatch: string;
93
+ };
94
+ };
95
+ };
96
+ ImageUploader: {
97
+ uploading: string;
98
+ upload: string;
99
+ };
100
+ InfiniteScroll: {
101
+ noMore: string;
102
+ failedToLoad: string;
103
+ retry: string;
104
+ };
105
+ Input: {
106
+ clear: string;
107
+ };
108
+ Mask: {
109
+ name: string;
110
+ };
111
+ Modal: {
112
+ ok: string;
113
+ };
114
+ PasscodeInput: {
115
+ name: string;
116
+ };
117
+ PullToRefresh: {
118
+ pulling: string;
119
+ canRelease: string;
120
+ complete: string;
121
+ };
122
+ SearchBar: {
123
+ name: string;
124
+ };
125
+ Slider: {
126
+ name: string;
127
+ };
128
+ Stepper: {
129
+ decrease: string;
130
+ increase: string;
131
+ };
132
+ Switch: {
133
+ name: string;
134
+ };
135
+ Selector: {
136
+ name: string;
137
+ };
138
+ };
139
+ export default deDE;
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _mergeLocale = require("../utils/merge-locale");
8
+ var _base = require("./base");
9
+ const typeTemplate = '${label}ist kein gültiges${type}';
10
+ const deDE = (0, _mergeLocale.mergeLocale)(_base.base, {
11
+ 'locale': 'de-DE',
12
+ 'common': {
13
+ 'confirm': 'Bestätigen',
14
+ 'cancel': 'Abbrechen',
15
+ 'loading': 'Wird geladen',
16
+ 'close': 'Deaktivieren'
17
+ },
18
+ 'Calendar': {
19
+ 'title': 'Datum auswählen',
20
+ 'confirm': 'Bestätigen',
21
+ 'start': 'Starten',
22
+ 'end': 'Beenden',
23
+ 'today': 'Heute',
24
+ 'markItems': ['Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag', 'Tag'],
25
+ 'yearAndMonth': '${year}Jahr${month}Monat'
26
+ },
27
+ 'Cascader': {
28
+ 'placeholder': 'Bitte auswählen'
29
+ },
30
+ 'Dialog': {
31
+ 'ok': 'OK'
32
+ },
33
+ 'DatePicker': {
34
+ 'tillNow': 'Bis heute'
35
+ },
36
+ 'ErrorBlock': {
37
+ 'default': {
38
+ 'title': 'Es gibt ein kleines Problem auf der Seite',
39
+ 'description': 'Versuche Sie es später'
40
+ },
41
+ 'busy': {
42
+ 'title': 'Stau im Voraus',
43
+ 'description': 'Einmal aktualisieren'
44
+ },
45
+ 'disconnected': {
46
+ 'title': 'Beschäftigtes Internet',
47
+ 'description': 'Beweg deine Finger und hilf mit!'
48
+ },
49
+ 'empty': {
50
+ 'title': 'Sie haben nicht gefunden, was Sie brauchen.',
51
+ 'description': 'Finden Sie etwas anderes.'
52
+ }
53
+ },
54
+ 'Form': {
55
+ 'required': 'Pflichtfeld',
56
+ 'optional': 'Optional',
57
+ 'defaultValidateMessages': {
58
+ 'default': 'Fehler bei der Feldüberprüfung${label}',
59
+ 'required': 'Bitte geben ${label}ein',
60
+ 'enum': '${label}muss einer von ihnen sein[${enum}]',
61
+ 'whitespace': '${label}kann nicht ein Nullzeichen sein',
62
+ 'date': {
63
+ 'format': '${label}Ungültiges Datumsformat',
64
+ 'parse': '${label}kann nicht in ein Datum umgewandelt werden',
65
+ 'invalid': '${label}ist ein ungültiges Datum'
66
+ },
67
+ 'types': {
68
+ 'string': typeTemplate,
69
+ 'method': typeTemplate,
70
+ 'array': typeTemplate,
71
+ 'object': typeTemplate,
72
+ 'number': typeTemplate,
73
+ 'date': typeTemplate,
74
+ 'boolean': typeTemplate,
75
+ 'integer': typeTemplate,
76
+ 'float': typeTemplate,
77
+ 'regexp': typeTemplate,
78
+ 'email': typeTemplate,
79
+ 'url': typeTemplate,
80
+ 'hex': typeTemplate
81
+ },
82
+ 'string': {
83
+ 'len': '${label} muss ${len} Zeichen lang sein',
84
+ 'min': '${label}kann mindestens ${min} Zeichen haben',
85
+ 'max': '${label}kann bis zu${max} Zeichen haben',
86
+ 'range': '${label}muss zwischen${min}-${max} Zeichen liegen'
87
+ },
88
+ 'number': {
89
+ 'len': '${label}Muss gleich${len}sein',
90
+ 'min': '${label}Der Mindestwert beträgt${min}',
91
+ 'max': '${label}Der Höchstwert beträgt ${max}',
92
+ 'range': '${label}muss zwischen${min}-${max} liegen'
93
+ },
94
+ 'array': {
95
+ 'len': 'Muss${len}sein${label}',
96
+ 'min': 'Mindestens${min}${label}',
97
+ 'max': 'Bis zu${max}${label}',
98
+ 'range': '${label}Die Anzahl muss zwischen${min}-${max} liegen'
99
+ },
100
+ 'pattern': {
101
+ 'mismatch': '${label}stimmt nicht mit dem Muster überein${pattern}'
102
+ }
103
+ }
104
+ },
105
+ 'ImageUploader': {
106
+ 'uploading': 'Beim Hochladen',
107
+ 'upload': 'Hochladen'
108
+ },
109
+ 'InfiniteScroll': {
110
+ 'noMore': "Das war's",
111
+ 'failedToLoad': 'Hochladen Fehlgeschlagen',
112
+ 'retry': 'Erneut laden'
113
+ },
114
+ 'Input': {
115
+ 'clear': 'Löschen'
116
+ },
117
+ 'Mask': {
118
+ 'name': 'Hintergrundmaske'
119
+ },
120
+ 'Modal': {
121
+ 'ok': 'OK'
122
+ },
123
+ 'PasscodeInput': {
124
+ 'name': 'Passwort-Eingabefeld'
125
+ },
126
+ 'PullToRefresh': {
127
+ 'pulling': 'Nach unten zum Aktualisieren ziehen',
128
+ 'canRelease': 'Loslassen zum sofortige aktualisieren',
129
+ 'complete': 'Erfolgreiche Aktualisierung'
130
+ },
131
+ 'SearchBar': {
132
+ 'name': 'Suchfeld'
133
+ },
134
+ 'Slider': {
135
+ 'name': 'Schieberegler für die Eingabe'
136
+ },
137
+ 'Stepper': {
138
+ 'decrease': 'Reduzieren',
139
+ 'increase': 'Erhöhen'
140
+ },
141
+ 'Switch': {
142
+ 'name': 'Schalter'
143
+ },
144
+ 'Selector': {
145
+ 'name': 'Gruppe auswählen'
146
+ }
147
+ });
148
+ var _default = deDE;
149
+ exports.default = _default;