antd-mobile 5.35.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 (116) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +45 -175
  2. package/2x/bundle/antd-mobile.cjs.js +7 -7
  3. package/2x/bundle/antd-mobile.es.development.js +45 -175
  4. package/2x/bundle/antd-mobile.es.js +5189 -5319
  5. package/2x/bundle/antd-mobile.umd.development.js +45 -175
  6. package/2x/bundle/antd-mobile.umd.js +7 -7
  7. package/2x/cjs/components/button/button.d.ts +2 -2
  8. package/2x/cjs/components/input/input.d.ts +2 -4
  9. package/2x/cjs/components/input/input.js +8 -17
  10. package/2x/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
  11. package/2x/cjs/components/input/useInputHandleKeyDown.js +29 -0
  12. package/2x/cjs/components/result-page/result-page.d.ts +1 -1
  13. package/2x/cjs/components/swiper/index.d.ts +1 -1
  14. package/2x/cjs/components/swiper/swiper.d.ts +2 -2
  15. package/2x/cjs/components/swiper/swiper.js +5 -1
  16. package/2x/cjs/components/text-area/text-area.d.ts +6 -2
  17. package/2x/cjs/components/text-area/text-area.js +9 -1
  18. package/2x/cjs/locales/ar-SA.d.ts +139 -0
  19. package/2x/cjs/locales/ar-SA.js +149 -0
  20. package/2x/cjs/locales/de-DE.d.ts +139 -0
  21. package/2x/cjs/locales/de-DE.js +149 -0
  22. package/2x/cjs/locales/ms-MY.d.ts +139 -0
  23. package/2x/cjs/locales/ms-MY.js +149 -0
  24. package/2x/cjs/locales/pt-BR.d.ts +139 -0
  25. package/2x/cjs/locales/pt-BR.js +144 -0
  26. package/2x/cjs/locales/vi-VN.d.ts +139 -0
  27. package/2x/cjs/locales/vi-VN.js +149 -0
  28. package/2x/cjs/locales/zh-CN.d.ts +2 -138
  29. package/2x/cjs/locales/zh-CN.js +2 -4
  30. package/2x/cjs/locales/zh-CN.test.d.ts +1 -0
  31. package/2x/cjs/locales/zh-CN.test.js +19 -0
  32. package/2x/es/components/button/button.d.ts +2 -2
  33. package/2x/es/components/input/input.d.ts +2 -4
  34. package/2x/es/components/input/input.js +8 -17
  35. package/2x/es/components/input/useInputHandleKeyDown.d.ts +8 -0
  36. package/2x/es/components/input/useInputHandleKeyDown.js +23 -0
  37. package/2x/es/components/result-page/result-page.d.ts +1 -1
  38. package/2x/es/components/swiper/index.d.ts +1 -1
  39. package/2x/es/components/swiper/swiper.d.ts +2 -2
  40. package/2x/es/components/swiper/swiper.js +5 -1
  41. package/2x/es/components/text-area/text-area.d.ts +6 -2
  42. package/2x/es/components/text-area/text-area.js +9 -1
  43. package/2x/es/locales/ar-SA.d.ts +139 -0
  44. package/2x/es/locales/ar-SA.js +142 -0
  45. package/2x/es/locales/de-DE.d.ts +139 -0
  46. package/2x/es/locales/de-DE.js +142 -0
  47. package/2x/es/locales/ms-MY.d.ts +139 -0
  48. package/2x/es/locales/ms-MY.js +142 -0
  49. package/2x/es/locales/pt-BR.d.ts +139 -0
  50. package/2x/es/locales/pt-BR.js +137 -0
  51. package/2x/es/locales/vi-VN.d.ts +139 -0
  52. package/2x/es/locales/vi-VN.js +142 -0
  53. package/2x/es/locales/zh-CN.d.ts +2 -138
  54. package/2x/es/locales/zh-CN.js +2 -4
  55. package/2x/es/locales/zh-CN.test.d.ts +1 -0
  56. package/2x/es/locales/zh-CN.test.js +16 -0
  57. package/2x/package.json +29 -20
  58. package/bundle/antd-mobile.cjs.development.js +45 -175
  59. package/bundle/antd-mobile.cjs.js +7 -7
  60. package/bundle/antd-mobile.compatible.umd.js +1 -1
  61. package/bundle/antd-mobile.es.development.js +45 -175
  62. package/bundle/antd-mobile.es.js +5189 -5319
  63. package/bundle/antd-mobile.umd.development.js +45 -175
  64. package/bundle/antd-mobile.umd.js +7 -7
  65. package/cjs/components/button/button.d.ts +2 -2
  66. package/cjs/components/input/input.d.ts +2 -4
  67. package/cjs/components/input/input.js +8 -17
  68. package/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
  69. package/cjs/components/input/useInputHandleKeyDown.js +29 -0
  70. package/cjs/components/result-page/result-page.d.ts +1 -1
  71. package/cjs/components/swiper/index.d.ts +1 -1
  72. package/cjs/components/swiper/swiper.d.ts +2 -2
  73. package/cjs/components/swiper/swiper.js +5 -1
  74. package/cjs/components/text-area/text-area.d.ts +6 -2
  75. package/cjs/components/text-area/text-area.js +9 -1
  76. package/cjs/locales/ar-SA.d.ts +139 -0
  77. package/cjs/locales/ar-SA.js +149 -0
  78. package/cjs/locales/de-DE.d.ts +139 -0
  79. package/cjs/locales/de-DE.js +149 -0
  80. package/cjs/locales/ms-MY.d.ts +139 -0
  81. package/cjs/locales/ms-MY.js +149 -0
  82. package/cjs/locales/pt-BR.d.ts +139 -0
  83. package/cjs/locales/pt-BR.js +144 -0
  84. package/cjs/locales/vi-VN.d.ts +139 -0
  85. package/cjs/locales/vi-VN.js +149 -0
  86. package/cjs/locales/zh-CN.d.ts +2 -138
  87. package/cjs/locales/zh-CN.js +2 -4
  88. package/cjs/locales/zh-CN.test.d.ts +1 -0
  89. package/cjs/locales/zh-CN.test.js +19 -0
  90. package/es/components/button/button.d.ts +2 -2
  91. package/es/components/input/input.d.ts +2 -4
  92. package/es/components/input/input.js +8 -17
  93. package/es/components/input/useInputHandleKeyDown.d.ts +8 -0
  94. package/es/components/input/useInputHandleKeyDown.js +23 -0
  95. package/es/components/result-page/result-page.d.ts +1 -1
  96. package/es/components/swiper/index.d.ts +1 -1
  97. package/es/components/swiper/swiper.d.ts +2 -2
  98. package/es/components/swiper/swiper.js +5 -1
  99. package/es/components/text-area/text-area.d.ts +6 -2
  100. package/es/components/text-area/text-area.js +9 -1
  101. package/es/locales/ar-SA.d.ts +139 -0
  102. package/es/locales/ar-SA.js +142 -0
  103. package/es/locales/de-DE.d.ts +139 -0
  104. package/es/locales/de-DE.js +142 -0
  105. package/es/locales/ms-MY.d.ts +139 -0
  106. package/es/locales/ms-MY.js +142 -0
  107. package/es/locales/pt-BR.d.ts +139 -0
  108. package/es/locales/pt-BR.js +137 -0
  109. package/es/locales/vi-VN.d.ts +139 -0
  110. package/es/locales/vi-VN.js +142 -0
  111. package/es/locales/zh-CN.d.ts +2 -138
  112. package/es/locales/zh-CN.js +2 -4
  113. package/es/locales/zh-CN.test.d.ts +1 -0
  114. package/es/locales/zh-CN.test.js +16 -0
  115. package/package.json +29 -20
  116. package/umd/antd-mobile.js +1 -1
@@ -4,10 +4,10 @@ import { CloseCircleFill } from 'antd-mobile-icons';
4
4
  import { withNativeProps } from '../../utils/native-props';
5
5
  import { mergeProps } from '../../utils/with-default-props';
6
6
  import classNames from 'classnames';
7
- import { useIsomorphicLayoutEffect } from 'ahooks';
8
7
  import { bound } from '../../utils/bound';
9
8
  import { isIOS } from '../../utils/validate';
10
9
  import { useConfig } from '../config-provider';
10
+ import useInputHandleKeyDown from './useInputHandleKeyDown';
11
11
  const classPrefix = `adm-input`;
12
12
  const defaultProps = {
13
13
  defaultValue: '',
@@ -22,6 +22,12 @@ export const Input = forwardRef((p, ref) => {
22
22
  const {
23
23
  locale
24
24
  } = useConfig();
25
+ const handleKeydown = useInputHandleKeyDown({
26
+ onEnterPress: props.onEnterPress,
27
+ onKeyDown: props.onKeyDown,
28
+ nativeInputRef,
29
+ enterKeyHint: props.enterKeyHint
30
+ });
25
31
  useImperativeHandle(ref, () => ({
26
32
  clear: () => {
27
33
  setValue('');
@@ -38,22 +44,6 @@ export const Input = forwardRef((p, ref) => {
38
44
  return nativeInputRef.current;
39
45
  }
40
46
  }));
41
- const handleKeydown = e => {
42
- var _a;
43
- if (props.onEnterPress && (e.code === 'Enter' || e.keyCode === 13)) {
44
- props.onEnterPress(e);
45
- }
46
- (_a = props.onKeyDown) === null || _a === void 0 ? void 0 : _a.call(props, e);
47
- };
48
- useIsomorphicLayoutEffect(() => {
49
- var _a;
50
- if (!props.enterKeyHint) return;
51
- (_a = nativeInputRef.current) === null || _a === void 0 ? void 0 : _a.setAttribute('enterkeyhint', props.enterKeyHint);
52
- return () => {
53
- var _a;
54
- (_a = nativeInputRef.current) === null || _a === void 0 ? void 0 : _a.removeAttribute('enterkeyhint');
55
- };
56
- }, [props.enterKeyHint]);
57
47
  function checkValue() {
58
48
  let nextValue = value;
59
49
  if (props.type === 'number') {
@@ -104,6 +94,7 @@ export const Input = forwardRef((p, ref) => {
104
94
  max: props.max,
105
95
  min: props.min,
106
96
  autoComplete: props.autoComplete,
97
+ enterKeyHint: props.enterKeyHint,
107
98
  autoFocus: props.autoFocus,
108
99
  pattern: props.pattern,
109
100
  inputMode: props.inputMode,
@@ -0,0 +1,8 @@
1
+ interface InputHandleKeyDownType<T> {
2
+ onEnterPress?: (e: React.KeyboardEvent<T>) => void;
3
+ onKeyDown?: (e: React.KeyboardEvent<T>) => void;
4
+ enterKeyHint?: React.InputHTMLAttributes<HTMLInputElement>['enterKeyHint'];
5
+ nativeInputRef: React.RefObject<T>;
6
+ }
7
+ export default function useInputHandleKeyDown<T extends HTMLInputElement | HTMLTextAreaElement>({ onEnterPress, onKeyDown, nativeInputRef, enterKeyHint, }: InputHandleKeyDownType<T>): (e: React.KeyboardEvent<T>) => void;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ import { useIsomorphicLayoutEffect } from 'ahooks';
2
+ export default function useInputHandleKeyDown({
3
+ onEnterPress,
4
+ onKeyDown,
5
+ nativeInputRef,
6
+ enterKeyHint
7
+ }) {
8
+ const handleKeydown = e => {
9
+ if (onEnterPress && (e.code === 'Enter' || e.keyCode === 13)) {
10
+ onEnterPress(e);
11
+ }
12
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
13
+ };
14
+ useIsomorphicLayoutEffect(() => {
15
+ const ele = nativeInputRef.current;
16
+ if (!enterKeyHint || !ele) return;
17
+ ele.setAttribute('enterkeyhint', enterKeyHint);
18
+ return () => {
19
+ ele.removeAttribute('enterkeyhint');
20
+ };
21
+ }, [enterKeyHint]);
22
+ return handleKeydown;
23
+ }
@@ -7,7 +7,7 @@ interface ResultPageDetail {
7
7
  bold?: boolean;
8
8
  }
9
9
  declare type ResultPageDetails = ResultPageDetail[];
10
- declare type OnClick = (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<void> | unknown;
10
+ declare type OnClick = (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<void>;
11
11
  export declare type ResultPageProps = {
12
12
  status?: 'success' | 'error' | 'info' | 'waiting' | 'warning';
13
13
  title: ReactNode;
@@ -3,7 +3,7 @@ export type { SwiperProps, SwiperRef } from './swiper';
3
3
  declare const _default: import("react").ForwardRefExoticComponent<{
4
4
  defaultIndex?: number | undefined;
5
5
  allowTouchMove?: boolean | undefined;
6
- autoplay?: boolean | undefined;
6
+ autoplay?: boolean | "reverse" | undefined;
7
7
  autoplayInterval?: number | undefined;
8
8
  loop?: boolean | undefined;
9
9
  direction?: "vertical" | "horizontal" | undefined;
@@ -16,7 +16,7 @@ export declare type SwiperRef = {
16
16
  export declare type SwiperProps = {
17
17
  defaultIndex?: number;
18
18
  allowTouchMove?: boolean;
19
- autoplay?: boolean;
19
+ autoplay?: boolean | 'reverse';
20
20
  autoplayInterval?: number;
21
21
  loop?: boolean;
22
22
  direction?: 'horizontal' | 'vertical';
@@ -40,7 +40,7 @@ export declare type SwiperProps = {
40
40
  export declare const Swiper: React.ForwardRefExoticComponent<{
41
41
  defaultIndex?: number | undefined;
42
42
  allowTouchMove?: boolean | undefined;
43
- autoplay?: boolean | undefined;
43
+ autoplay?: boolean | "reverse" | undefined;
44
44
  autoplayInterval?: number | undefined;
45
45
  loop?: boolean | undefined;
46
46
  direction?: "vertical" | "horizontal" | undefined;
@@ -219,7 +219,11 @@ export const Swiper = forwardRef(staged((p, ref) => {
219
219
  } = props;
220
220
  const runTimeSwiper = () => {
221
221
  timeoutRef.current = window.setTimeout(() => {
222
- swipeNext();
222
+ if (autoplay === 'reverse') {
223
+ swipePrev();
224
+ } else {
225
+ swipeNext();
226
+ }
223
227
  runTimeSwiper();
224
228
  }, autoplayInterval);
225
229
  };
@@ -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;
@@ -5,6 +5,7 @@ import { withNativeProps } from '../../utils/native-props';
5
5
  import { usePropsValue } from '../../utils/use-props-value';
6
6
  import { mergeProps } from '../../utils/with-default-props';
7
7
  import { devError } from '../../utils/dev-log';
8
+ import useInputHandleKeyDown from '../../components/input/useInputHandleKeyDown';
8
9
  const classPrefix = 'adm-text-area';
9
10
  const defaultProps = {
10
11
  rows: 2,
@@ -30,6 +31,12 @@ export const TextArea = forwardRef((p, ref) => {
30
31
  const heightRef = useRef('auto');
31
32
  // https://github.com/ant-design/ant-design-mobile/issues/6051
32
33
  const hiddenTextAreaRef = useRef(null);
34
+ const handleKeydown = useInputHandleKeyDown({
35
+ onEnterPress: props.onEnterPress,
36
+ onKeyDown: props.onKeyDown,
37
+ nativeInputRef: nativeTextAreaRef,
38
+ enterKeyHint: props.enterKeyHint
39
+ });
33
40
  useImperativeHandle(ref, () => ({
34
41
  clear: () => {
35
42
  setValue('');
@@ -123,7 +130,8 @@ export const TextArea = forwardRef((p, ref) => {
123
130
  name: props.name,
124
131
  onFocus: props.onFocus,
125
132
  onBlur: props.onBlur,
126
- onClick: props.onClick
133
+ onClick: props.onClick,
134
+ onKeyDown: handleKeydown
127
135
  }), count, autoSize && React.createElement("textarea", {
128
136
  ref: hiddenTextAreaRef,
129
137
  className: `${classPrefix}-element ${classPrefix}-element-hidden`,
@@ -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,142 @@
1
+ import { mergeLocale } from '../utils/merge-locale';
2
+ import { base } from './base';
3
+ const typeTemplate = '${label} غير صالح ${type}';
4
+ const arSA = mergeLocale(base, {
5
+ 'locale': 'ar-SA',
6
+ 'common': {
7
+ 'confirm': 'نعم',
8
+ 'cancel': 'إلغاء',
9
+ 'loading': 'جار التحميل',
10
+ 'close': 'إغلاق'
11
+ },
12
+ 'Calendar': {
13
+ 'title': 'اختيار التاريخ',
14
+ 'confirm': 'تأكيد',
15
+ 'start': 'يبدأ',
16
+ 'end': 'ينهي',
17
+ 'today': 'اليوم',
18
+ 'markItems': ['واحد', 'اثنين', 'ثلاثة', 'أربعة', 'خمسة', 'ستة', 'يوم'],
19
+ 'yearAndMonth': '${year} سنة ${month} شهر'
20
+ },
21
+ 'Cascader': {
22
+ 'placeholder': 'اختر من فضلك'
23
+ },
24
+ 'Dialog': {
25
+ 'ok': 'عرفت'
26
+ },
27
+ 'DatePicker': {
28
+ 'tillNow': 'إلى اليوم'
29
+ },
30
+ 'ErrorBlock': {
31
+ 'default': {
32
+ 'title': 'تواجه الصفحة بعض المشكلات البسيطة',
33
+ 'description': 'حاول لاحقًا'
34
+ },
35
+ 'busy': {
36
+ 'title': 'الازدحام في الأمام',
37
+ 'description': 'حاول التجديد'
38
+ },
39
+ 'disconnected': {
40
+ 'title': 'شبكة مشغولة',
41
+ 'description': 'مرر أصابعك وساعد ف الإصلاح'
42
+ },
43
+ 'empty': {
44
+ 'title': 'لم أتمكن من العثور على ما تحتاجه',
45
+ 'description': 'البحث عن شيء آخر'
46
+ }
47
+ },
48
+ 'Form': {
49
+ 'required': 'مطلوب',
50
+ 'optional': 'اختياري',
51
+ 'defaultValidateMessages': {
52
+ 'default': 'خطأ في التحقق من صحة الكلمات ${label}',
53
+ 'required': 'يرجى إدخال ${label}',
54
+ 'enum': '${label} يجب أن يكون واحدًا منهم [ ${enum} ]',
55
+ 'whitespace': '${label} لا يمكن أن يكون حرفًا فارغًا',
56
+ 'date': {
57
+ 'format': '${label} تنسيق التاريخ غير صالح',
58
+ 'parse': '${label} لا يمكن تحويله إلى تاريخ',
59
+ 'invalid': '${label} تاريخ غير صالح'
60
+ },
61
+ 'types': {
62
+ 'string': typeTemplate,
63
+ 'method': typeTemplate,
64
+ 'array': typeTemplate,
65
+ 'object': typeTemplate,
66
+ 'number': typeTemplate,
67
+ 'date': typeTemplate,
68
+ 'boolean': typeTemplate,
69
+ 'integer': typeTemplate,
70
+ 'float': typeTemplate,
71
+ 'regexp': typeTemplate,
72
+ 'email': typeTemplate,
73
+ 'url': typeTemplate,
74
+ 'hex': typeTemplate
75
+ },
76
+ 'string': {
77
+ 'len': '${label} يجب أن يكون عدد الأحرف ${len}',
78
+ 'min': '${label} أحرف على الأقل ${min}',
79
+ 'max': '${label} الحد الأقصى لعدد الأحرف ${max}',
80
+ 'range': '${label} يجب أن يكون بين ${min} - ${max} حرفًا'
81
+ },
82
+ 'number': {
83
+ 'len': '${label} يجب أن يساوي ${len}',
84
+ 'min': '${label}الحد الأدنى للقيمة هو ${min}',
85
+ 'max': '${label}القيمة القصوى هي ${max}',
86
+ 'range': '${label} يجب أن يكون بين ${min} - ${max}'
87
+ },
88
+ 'array': {
89
+ 'len': 'يجب أن يكون ${len} ${label}',
90
+ 'min': 'على الأقل ${min} ${label}',
91
+ 'max': 'الحد الأقصى ${max} ${label}',
92
+ 'range': '${label} يجب أن تكون الكمية بين ${min} - ${max}'
93
+ },
94
+ 'pattern': {
95
+ 'mismatch': '${label} لا يتطابق مع النمط ${pattern}'
96
+ }
97
+ }
98
+ },
99
+ 'ImageUploader': {
100
+ 'uploading': 'جارٍ التحميل...',
101
+ 'upload': 'تحميل'
102
+ },
103
+ 'InfiniteScroll': {
104
+ 'noMore': '-لا يوجد أكثر-',
105
+ 'failedToLoad': 'فشل التحميل',
106
+ 'retry': 'إعادة التحميل'
107
+ },
108
+ 'Input': {
109
+ 'clear': 'إزالة'
110
+ },
111
+ 'Mask': {
112
+ 'name': 'قناع الخلفية'
113
+ },
114
+ 'Modal': {
115
+ 'ok': 'عرفت'
116
+ },
117
+ 'PasscodeInput': {
118
+ 'name': 'مربع إدخال كلمة المرور'
119
+ },
120
+ 'PullToRefresh': {
121
+ 'pulling': 'اسحب إلى الأسفل للتحديث',
122
+ 'canRelease': 'حرر للتحديث على الفور',
123
+ 'complete': 'تم التحديث بنجاح'
124
+ },
125
+ 'SearchBar': {
126
+ 'name': 'شريط البحث'
127
+ },
128
+ 'Slider': {
129
+ 'name': 'شريط الإدخال المنزلق'
130
+ },
131
+ 'Stepper': {
132
+ 'decrease': 'يقلل',
133
+ 'increase': 'يزيد'
134
+ },
135
+ 'Switch': {
136
+ 'name': 'زر الفتح والإغلاق'
137
+ },
138
+ 'Selector': {
139
+ 'name': 'اختر مجموعة'
140
+ }
141
+ });
142
+ export default arSA;
@@ -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;