antd-mobile 5.15.1 → 5.16.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.
- package/2x/README.md +30 -16
- package/2x/bundle/antd-mobile.cjs.js +322 -193
- package/2x/bundle/antd-mobile.es.js +323 -194
- package/2x/bundle/style.css +66 -13
- package/2x/cjs/components/action-sheet/action-sheet.d.ts +2 -4
- package/2x/cjs/components/action-sheet/action-sheet.js +6 -2
- package/2x/cjs/components/cascader/cascader.d.ts +29 -4
- package/2x/cjs/components/cascader/cascader.js +41 -19
- package/2x/cjs/components/cascader/index.d.ts +21 -2
- package/2x/cjs/components/center-popup/center-popup.css +11 -0
- package/2x/cjs/components/center-popup/center-popup.d.ts +3 -20
- package/2x/cjs/components/center-popup/center-popup.js +24 -13
- package/2x/cjs/components/date-picker/date-picker.d.ts +2 -2
- package/2x/cjs/components/date-picker/date-picker.js +3 -1
- package/2x/cjs/components/date-picker/index.d.ts +1 -1
- package/2x/cjs/components/input/input.css +4 -0
- package/2x/cjs/components/input/input.d.ts +7 -4
- package/2x/cjs/components/input/input.js +5 -1
- package/2x/cjs/components/list/index.d.ts +10 -2
- package/2x/cjs/components/list/list.d.ts +13 -2
- package/2x/cjs/components/list/list.js +16 -6
- package/2x/cjs/components/modal/modal-action-button.d.ts +2 -2
- package/2x/cjs/components/modal/modal.css +0 -9
- package/2x/cjs/components/modal/modal.js +4 -11
- package/2x/cjs/components/number-keyboard/number-keyboard.d.ts +1 -5
- package/2x/cjs/components/number-keyboard/number-keyboard.js +13 -7
- package/2x/cjs/components/picker/index.d.ts +2 -6
- package/2x/cjs/components/picker/picker.d.ts +2 -6
- package/2x/cjs/components/picker/picker.js +8 -7
- package/2x/cjs/components/picker-view/picker-view.css +1 -0
- package/2x/cjs/components/picker-view/wheel.js +10 -8
- package/2x/cjs/components/popup/popup-base-props.d.ts +35 -0
- package/2x/cjs/components/popup/popup-base-props.js +18 -0
- package/2x/cjs/components/popup/popup.css +32 -0
- package/2x/cjs/components/popup/popup.d.ts +3 -19
- package/2x/cjs/components/popup/popup.js +43 -18
- package/2x/cjs/components/progress-bar/progress-bar.css +17 -3
- package/2x/cjs/components/progress-bar/progress-bar.d.ts +4 -2
- package/2x/cjs/components/progress-bar/progress-bar.js +27 -5
- package/2x/cjs/components/slider/slider.js +2 -1
- package/2x/cjs/components/slider/thumb.d.ts +2 -1
- package/2x/cjs/components/slider/thumb.js +13 -1
- package/2x/cjs/components/stepper/stepper.js +14 -3
- package/2x/cjs/components/steps/steps.css +1 -1
- package/2x/cjs/locales/base.d.ts +7 -0
- package/2x/cjs/locales/base.js +7 -0
- package/2x/cjs/locales/en-US.d.ts +7 -0
- package/2x/cjs/locales/es-ES.d.ts +7 -0
- package/2x/cjs/locales/fa-IR.d.ts +7 -0
- package/2x/cjs/locales/fr-FR.d.ts +7 -0
- package/2x/cjs/locales/id-ID.d.ts +118 -0
- package/2x/cjs/locales/id-ID.js +121 -0
- package/2x/cjs/locales/kk-KZ.d.ts +118 -0
- package/2x/cjs/locales/kk-KZ.js +124 -0
- package/2x/cjs/locales/ko-KR.d.ts +7 -0
- package/2x/cjs/locales/zh-CN.d.ts +7 -0
- package/2x/cjs/locales/zh-CN.js +7 -0
- package/2x/cjs/locales/zh-HK.d.ts +7 -0
- package/2x/cjs/locales/zh-TW.d.ts +7 -0
- package/2x/es/components/action-sheet/action-sheet.d.ts +2 -4
- package/2x/es/components/action-sheet/action-sheet.js +6 -2
- package/2x/es/components/cascader/cascader.d.ts +29 -4
- package/2x/es/components/cascader/cascader.js +42 -18
- package/2x/es/components/cascader/index.d.ts +21 -2
- package/2x/es/components/center-popup/center-popup.css +11 -0
- package/2x/es/components/center-popup/center-popup.d.ts +3 -20
- package/2x/es/components/center-popup/center-popup.js +22 -13
- package/2x/es/components/date-picker/date-picker.d.ts +2 -2
- package/2x/es/components/date-picker/date-picker.js +3 -1
- package/2x/es/components/date-picker/index.d.ts +1 -1
- package/2x/es/components/input/input.css +4 -0
- package/2x/es/components/input/input.d.ts +7 -4
- package/2x/es/components/input/input.js +5 -1
- package/2x/es/components/list/index.d.ts +10 -2
- package/2x/es/components/list/list.d.ts +13 -2
- package/2x/es/components/list/list.js +12 -4
- package/2x/es/components/modal/modal-action-button.d.ts +2 -2
- package/2x/es/components/modal/modal.css +0 -9
- package/2x/es/components/modal/modal.js +4 -10
- package/2x/es/components/number-keyboard/number-keyboard.d.ts +1 -5
- package/2x/es/components/number-keyboard/number-keyboard.js +13 -7
- package/2x/es/components/picker/index.d.ts +2 -6
- package/2x/es/components/picker/picker.d.ts +2 -6
- package/2x/es/components/picker/picker.js +8 -6
- package/2x/es/components/picker-view/picker-view.css +1 -0
- package/2x/es/components/picker-view/wheel.js +10 -8
- package/2x/es/components/popup/popup-base-props.d.ts +35 -0
- package/2x/es/components/popup/popup-base-props.js +11 -0
- package/2x/es/components/popup/popup.css +32 -0
- package/2x/es/components/popup/popup.d.ts +3 -19
- package/2x/es/components/popup/popup.js +41 -19
- package/2x/es/components/progress-bar/progress-bar.css +17 -3
- package/2x/es/components/progress-bar/progress-bar.d.ts +4 -2
- package/2x/es/components/progress-bar/progress-bar.js +25 -5
- package/2x/es/components/slider/slider.js +2 -1
- package/2x/es/components/slider/thumb.d.ts +2 -1
- package/2x/es/components/slider/thumb.js +12 -1
- package/2x/es/components/stepper/stepper.js +13 -3
- package/2x/es/components/steps/steps.css +1 -1
- package/2x/es/locales/base.d.ts +7 -0
- package/2x/es/locales/base.js +7 -0
- package/2x/es/locales/en-US.d.ts +7 -0
- package/2x/es/locales/es-ES.d.ts +7 -0
- package/2x/es/locales/fa-IR.d.ts +7 -0
- package/2x/es/locales/fr-FR.d.ts +7 -0
- package/2x/es/locales/id-ID.d.ts +118 -0
- package/2x/es/locales/id-ID.js +111 -0
- package/2x/es/locales/kk-KZ.d.ts +118 -0
- package/2x/es/locales/kk-KZ.js +114 -0
- package/2x/es/locales/ko-KR.d.ts +7 -0
- package/2x/es/locales/zh-CN.d.ts +7 -0
- package/2x/es/locales/zh-CN.js +7 -0
- package/2x/es/locales/zh-HK.d.ts +7 -0
- package/2x/es/locales/zh-TW.d.ts +7 -0
- package/2x/package.json +1 -1
- package/2x/umd/antd-mobile.js +1 -1
- package/README.md +30 -16
- package/bundle/antd-mobile.cjs.js +322 -193
- package/bundle/antd-mobile.es.js +323 -194
- package/bundle/style.css +56 -12
- package/cjs/components/action-sheet/action-sheet.d.ts +2 -4
- package/cjs/components/action-sheet/action-sheet.js +6 -2
- package/cjs/components/cascader/cascader.d.ts +29 -4
- package/cjs/components/cascader/cascader.js +41 -19
- package/cjs/components/cascader/index.d.ts +21 -2
- package/cjs/components/center-popup/center-popup.css +10 -0
- package/cjs/components/center-popup/center-popup.d.ts +3 -20
- package/cjs/components/center-popup/center-popup.js +24 -13
- package/cjs/components/date-picker/date-picker.d.ts +2 -2
- package/cjs/components/date-picker/date-picker.js +3 -1
- package/cjs/components/date-picker/index.d.ts +1 -1
- package/cjs/components/input/input.css +3 -0
- package/cjs/components/input/input.d.ts +7 -4
- package/cjs/components/input/input.js +5 -1
- package/cjs/components/list/index.d.ts +10 -2
- package/cjs/components/list/list.d.ts +13 -2
- package/cjs/components/list/list.js +16 -6
- package/cjs/components/modal/modal-action-button.d.ts +2 -2
- package/cjs/components/modal/modal.css +0 -8
- package/cjs/components/modal/modal.js +4 -11
- package/cjs/components/number-keyboard/number-keyboard.d.ts +1 -5
- package/cjs/components/number-keyboard/number-keyboard.js +13 -7
- package/cjs/components/picker/index.d.ts +2 -6
- package/cjs/components/picker/picker.d.ts +2 -6
- package/cjs/components/picker/picker.js +8 -7
- package/cjs/components/picker-view/picker-view.css +1 -0
- package/cjs/components/picker-view/wheel.js +10 -8
- package/cjs/components/popup/popup-base-props.d.ts +35 -0
- package/cjs/components/popup/popup-base-props.js +18 -0
- package/cjs/components/popup/popup.css +26 -0
- package/cjs/components/popup/popup.d.ts +3 -19
- package/cjs/components/popup/popup.js +43 -18
- package/cjs/components/progress-bar/progress-bar.css +15 -3
- package/cjs/components/progress-bar/progress-bar.d.ts +4 -2
- package/cjs/components/progress-bar/progress-bar.js +27 -5
- package/cjs/components/slider/slider.js +2 -1
- package/cjs/components/slider/thumb.d.ts +2 -1
- package/cjs/components/slider/thumb.js +13 -1
- package/cjs/components/stepper/stepper.js +14 -3
- package/cjs/components/steps/steps.css +1 -1
- package/cjs/locales/base.d.ts +7 -0
- package/cjs/locales/base.js +7 -0
- package/cjs/locales/en-US.d.ts +7 -0
- package/cjs/locales/es-ES.d.ts +7 -0
- package/cjs/locales/fa-IR.d.ts +7 -0
- package/cjs/locales/fr-FR.d.ts +7 -0
- package/cjs/locales/id-ID.d.ts +118 -0
- package/cjs/locales/id-ID.js +121 -0
- package/cjs/locales/kk-KZ.d.ts +118 -0
- package/cjs/locales/kk-KZ.js +124 -0
- package/cjs/locales/ko-KR.d.ts +7 -0
- package/cjs/locales/zh-CN.d.ts +7 -0
- package/cjs/locales/zh-CN.js +7 -0
- package/cjs/locales/zh-HK.d.ts +7 -0
- package/cjs/locales/zh-TW.d.ts +7 -0
- package/es/components/action-sheet/action-sheet.d.ts +2 -4
- package/es/components/action-sheet/action-sheet.js +6 -2
- package/es/components/cascader/cascader.d.ts +29 -4
- package/es/components/cascader/cascader.js +42 -18
- package/es/components/cascader/index.d.ts +21 -2
- package/es/components/center-popup/center-popup.css +10 -0
- package/es/components/center-popup/center-popup.d.ts +3 -20
- package/es/components/center-popup/center-popup.js +22 -13
- package/es/components/date-picker/date-picker.d.ts +2 -2
- package/es/components/date-picker/date-picker.js +3 -1
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/input/input.css +3 -0
- package/es/components/input/input.d.ts +7 -4
- package/es/components/input/input.js +5 -1
- package/es/components/list/index.d.ts +10 -2
- package/es/components/list/list.d.ts +13 -2
- package/es/components/list/list.js +12 -4
- package/es/components/modal/modal-action-button.d.ts +2 -2
- package/es/components/modal/modal.css +0 -8
- package/es/components/modal/modal.js +4 -10
- package/es/components/number-keyboard/number-keyboard.d.ts +1 -5
- package/es/components/number-keyboard/number-keyboard.js +13 -7
- package/es/components/picker/index.d.ts +2 -6
- package/es/components/picker/picker.d.ts +2 -6
- package/es/components/picker/picker.js +8 -6
- package/es/components/picker-view/picker-view.css +1 -0
- package/es/components/picker-view/wheel.js +10 -8
- package/es/components/popup/popup-base-props.d.ts +35 -0
- package/es/components/popup/popup-base-props.js +11 -0
- package/es/components/popup/popup.css +26 -0
- package/es/components/popup/popup.d.ts +3 -19
- package/es/components/popup/popup.js +41 -19
- package/es/components/progress-bar/progress-bar.css +15 -3
- package/es/components/progress-bar/progress-bar.d.ts +4 -2
- package/es/components/progress-bar/progress-bar.js +25 -5
- package/es/components/slider/slider.js +2 -1
- package/es/components/slider/thumb.d.ts +2 -1
- package/es/components/slider/thumb.js +12 -1
- package/es/components/stepper/stepper.js +13 -3
- package/es/components/steps/steps.css +1 -1
- package/es/locales/base.d.ts +7 -0
- package/es/locales/base.js +7 -0
- package/es/locales/en-US.d.ts +7 -0
- package/es/locales/es-ES.d.ts +7 -0
- package/es/locales/fa-IR.d.ts +7 -0
- package/es/locales/fr-FR.d.ts +7 -0
- package/es/locales/id-ID.d.ts +118 -0
- package/es/locales/id-ID.js +111 -0
- package/es/locales/kk-KZ.d.ts +118 -0
- package/es/locales/kk-KZ.js +114 -0
- package/es/locales/ko-KR.d.ts +7 -0
- package/es/locales/zh-CN.d.ts +7 -0
- package/es/locales/zh-CN.js +7 -0
- package/es/locales/zh-HK.d.ts +7 -0
- package/es/locales/zh-TW.d.ts +7 -0
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -11,25 +11,47 @@ var _nativeProps = require("../../utils/native-props");
|
|
|
11
11
|
|
|
12
12
|
var _withDefaultProps = require("../../utils/with-default-props");
|
|
13
13
|
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
var _isNodeWithContent = require("../../utils/is-node-with-content");
|
|
17
|
+
|
|
14
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
19
|
|
|
16
20
|
const classPrefix = `adm-progress-bar`;
|
|
21
|
+
const defaultProps = {
|
|
22
|
+
percent: 0,
|
|
23
|
+
rounded: true,
|
|
24
|
+
text: false
|
|
25
|
+
};
|
|
17
26
|
|
|
18
27
|
const ProgressBar = p => {
|
|
19
|
-
const props = (0, _withDefaultProps.mergeProps)(
|
|
20
|
-
percent: 0
|
|
21
|
-
}, p);
|
|
28
|
+
const props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
|
|
22
29
|
const fillStyle = {
|
|
23
30
|
width: `${props.percent}%`
|
|
24
31
|
};
|
|
32
|
+
|
|
33
|
+
const textElement = function () {
|
|
34
|
+
if (props.text === true) {
|
|
35
|
+
return `${props.percent}%`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (typeof props.text === 'function') {
|
|
39
|
+
return props.text(props.percent);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return props.text;
|
|
43
|
+
}();
|
|
44
|
+
|
|
25
45
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
26
|
-
className: classPrefix
|
|
46
|
+
className: (0, _classnames.default)(classPrefix, props.rounded && `${classPrefix}-rounded`)
|
|
27
47
|
}, _react.default.createElement("div", {
|
|
28
48
|
className: `${classPrefix}-trail`
|
|
29
49
|
}, _react.default.createElement("div", {
|
|
30
50
|
className: `${classPrefix}-fill`,
|
|
31
51
|
style: fillStyle
|
|
32
|
-
}))))
|
|
52
|
+
})), (0, _isNodeWithContent.isNodeWithContent)(textElement) && _react.default.createElement("div", {
|
|
53
|
+
className: `${classPrefix}-text`
|
|
54
|
+
}, textElement)));
|
|
33
55
|
};
|
|
34
56
|
|
|
35
57
|
exports.ProgressBar = ProgressBar;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FC, RefObject, ReactNode } from 'react';
|
|
2
|
+
import { NativeProps } from '../../utils/native-props';
|
|
2
3
|
declare type ThumbProps = {
|
|
3
4
|
value: number;
|
|
4
5
|
min: number;
|
|
@@ -8,6 +9,6 @@ declare type ThumbProps = {
|
|
|
8
9
|
trackRef: RefObject<HTMLDivElement>;
|
|
9
10
|
icon?: React.ReactNode;
|
|
10
11
|
popover: boolean | ((value: number) => ReactNode);
|
|
11
|
-
};
|
|
12
|
+
} & NativeProps;
|
|
12
13
|
declare const Thumb: FC<ThumbProps>;
|
|
13
14
|
export default Thumb;
|
|
@@ -13,6 +13,8 @@ var _thumbIcon = require("./thumb-icon");
|
|
|
13
13
|
|
|
14
14
|
var _popover = require("../popover/popover");
|
|
15
15
|
|
|
16
|
+
var _configProvider = require("../config-provider");
|
|
17
|
+
|
|
16
18
|
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); }
|
|
17
19
|
|
|
18
20
|
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; }
|
|
@@ -29,6 +31,9 @@ const Thumb = props => {
|
|
|
29
31
|
icon
|
|
30
32
|
} = props;
|
|
31
33
|
const prevValue = (0, _react.useRef)(value);
|
|
34
|
+
const {
|
|
35
|
+
locale
|
|
36
|
+
} = (0, _configProvider.useConfig)();
|
|
32
37
|
|
|
33
38
|
const currentPosition = () => {
|
|
34
39
|
return {
|
|
@@ -70,7 +75,14 @@ const Thumb = props => {
|
|
|
70
75
|
return _react.default.createElement("div", Object.assign({
|
|
71
76
|
className: `${classPrefix}-thumb-container`,
|
|
72
77
|
style: currentPosition()
|
|
73
|
-
}, bind()
|
|
78
|
+
}, bind(), {
|
|
79
|
+
role: 'slider',
|
|
80
|
+
"aria-label": props['aria-label'] || locale.Slider.name,
|
|
81
|
+
"aria-valuemax": max,
|
|
82
|
+
"aria-valuemin": min,
|
|
83
|
+
"aria-valuenow": value,
|
|
84
|
+
"aria-disabled": disabled
|
|
85
|
+
}), renderPopoverContent ? _react.default.createElement(_popover.Popover, {
|
|
74
86
|
content: renderPopoverContent(value),
|
|
75
87
|
placement: 'top',
|
|
76
88
|
visible: dragging,
|
|
@@ -25,6 +25,8 @@ var _button = _interopRequireDefault(require("../button"));
|
|
|
25
25
|
|
|
26
26
|
var _big = _interopRequireDefault(require("big.js"));
|
|
27
27
|
|
|
28
|
+
var _configProvider = require("../config-provider");
|
|
29
|
+
|
|
28
30
|
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); }
|
|
29
31
|
|
|
30
32
|
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; }
|
|
@@ -48,6 +50,9 @@ const Stepper = p => {
|
|
|
48
50
|
min,
|
|
49
51
|
inputReadOnly
|
|
50
52
|
} = props;
|
|
53
|
+
const {
|
|
54
|
+
locale
|
|
55
|
+
} = (0, _configProvider.useConfig)();
|
|
51
56
|
const [value, setValue] = (0, _usePropsValue.usePropsValue)(props);
|
|
52
57
|
const [inputValue, setInputValue] = (0, _react.useState)(() => convertValueToText(value, props.digits));
|
|
53
58
|
|
|
@@ -129,7 +134,8 @@ const Stepper = p => {
|
|
|
129
134
|
disabled: minusDisabled(),
|
|
130
135
|
fill: 'none',
|
|
131
136
|
shape: 'rectangular',
|
|
132
|
-
color: 'primary'
|
|
137
|
+
color: 'primary',
|
|
138
|
+
"aria-label": locale.Stepper.decrease
|
|
133
139
|
}, _react.default.createElement(_antdMobileIcons.MinusOutline, null)), _react.default.createElement("div", {
|
|
134
140
|
className: `${classPrefix}-middle`
|
|
135
141
|
}, _react.default.createElement(_input.default, {
|
|
@@ -151,14 +157,19 @@ const Stepper = p => {
|
|
|
151
157
|
setHasFocus(false);
|
|
152
158
|
(_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
153
159
|
},
|
|
154
|
-
readOnly: inputReadOnly
|
|
160
|
+
readOnly: inputReadOnly,
|
|
161
|
+
role: 'spinbutton',
|
|
162
|
+
"aria-valuenow": Number(inputValue),
|
|
163
|
+
"aria-valuemax": max,
|
|
164
|
+
"aria-valuemin": min
|
|
155
165
|
})), _react.default.createElement(_button.default, {
|
|
156
166
|
className: `${classPrefix}-plus`,
|
|
157
167
|
onClick: handlePlus,
|
|
158
168
|
disabled: plusDisabled(),
|
|
159
169
|
fill: 'none',
|
|
160
170
|
shape: 'rectangular',
|
|
161
|
-
color: 'primary'
|
|
171
|
+
color: 'primary',
|
|
172
|
+
"aria-label": locale.Stepper.increase
|
|
162
173
|
}, _react.default.createElement(_antdMobileIcons.AddOutline, null))));
|
|
163
174
|
};
|
|
164
175
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
.adm-step .adm-step-indicator .adm-step-icon-container {
|
|
15
15
|
position: absolute;
|
|
16
16
|
z-index: 1;
|
|
17
|
-
background: var(--adm-color-
|
|
17
|
+
background: var(--adm-color-background);
|
|
18
18
|
color: var(--icon-color);
|
|
19
19
|
}
|
|
20
20
|
.adm-step .adm-step-indicator .adm-step-icon-container > .antd-mobile-icon {
|
package/cjs/locales/base.d.ts
CHANGED
package/cjs/locales/base.js
CHANGED
|
@@ -111,6 +111,13 @@ const base = {
|
|
|
111
111
|
canRelease: 'Release to refresh immediately',
|
|
112
112
|
complete: 'Refresh successful'
|
|
113
113
|
},
|
|
114
|
+
Slider: {
|
|
115
|
+
name: 'Slider'
|
|
116
|
+
},
|
|
117
|
+
Stepper: {
|
|
118
|
+
decrease: 'decrease',
|
|
119
|
+
increase: 'increase'
|
|
120
|
+
},
|
|
114
121
|
Switch: {
|
|
115
122
|
name: 'Switch'
|
|
116
123
|
}
|
package/cjs/locales/en-US.d.ts
CHANGED
package/cjs/locales/es-ES.d.ts
CHANGED
package/cjs/locales/fa-IR.d.ts
CHANGED
package/cjs/locales/fr-FR.d.ts
CHANGED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare const idID: {
|
|
2
|
+
locale: string;
|
|
3
|
+
common: {
|
|
4
|
+
confirm: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
loading: string;
|
|
7
|
+
};
|
|
8
|
+
Calendar: {
|
|
9
|
+
markItems: string[];
|
|
10
|
+
renderYearAndMonth: (year: number, month: number) => string;
|
|
11
|
+
};
|
|
12
|
+
Cascader: {
|
|
13
|
+
placeholder: string;
|
|
14
|
+
};
|
|
15
|
+
Dialog: {
|
|
16
|
+
ok: string;
|
|
17
|
+
};
|
|
18
|
+
ErrorBlock: {
|
|
19
|
+
default: {
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
busy: {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
disconnected: {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
empty: {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
Form: {
|
|
37
|
+
required: string;
|
|
38
|
+
optional: string;
|
|
39
|
+
defaultValidateMessages: {
|
|
40
|
+
default: string;
|
|
41
|
+
required: string;
|
|
42
|
+
enum: string;
|
|
43
|
+
whitespace: string;
|
|
44
|
+
date: {
|
|
45
|
+
format: string;
|
|
46
|
+
parse: string;
|
|
47
|
+
invalid: string;
|
|
48
|
+
};
|
|
49
|
+
types: {
|
|
50
|
+
string: string;
|
|
51
|
+
method: string;
|
|
52
|
+
array: string;
|
|
53
|
+
object: string;
|
|
54
|
+
number: string;
|
|
55
|
+
date: string;
|
|
56
|
+
boolean: string;
|
|
57
|
+
integer: string;
|
|
58
|
+
float: string;
|
|
59
|
+
regexp: string;
|
|
60
|
+
email: string;
|
|
61
|
+
url: string;
|
|
62
|
+
hex: string;
|
|
63
|
+
};
|
|
64
|
+
string: {
|
|
65
|
+
len: string;
|
|
66
|
+
min: string;
|
|
67
|
+
max: string;
|
|
68
|
+
range: string;
|
|
69
|
+
};
|
|
70
|
+
number: {
|
|
71
|
+
len: string;
|
|
72
|
+
min: string;
|
|
73
|
+
max: string;
|
|
74
|
+
range: string;
|
|
75
|
+
};
|
|
76
|
+
array: {
|
|
77
|
+
len: string;
|
|
78
|
+
min: string;
|
|
79
|
+
max: string;
|
|
80
|
+
range: string;
|
|
81
|
+
};
|
|
82
|
+
pattern: {
|
|
83
|
+
mismatch: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
ImageUploader: {
|
|
88
|
+
uploading: string;
|
|
89
|
+
upload: string;
|
|
90
|
+
};
|
|
91
|
+
InfiniteScroll: {
|
|
92
|
+
noMore: string;
|
|
93
|
+
failedToLoad: string;
|
|
94
|
+
retry: string;
|
|
95
|
+
};
|
|
96
|
+
Mask: {
|
|
97
|
+
name: string;
|
|
98
|
+
};
|
|
99
|
+
Modal: {
|
|
100
|
+
ok: string;
|
|
101
|
+
};
|
|
102
|
+
PullToRefresh: {
|
|
103
|
+
pulling: string;
|
|
104
|
+
canRelease: string;
|
|
105
|
+
complete: string;
|
|
106
|
+
};
|
|
107
|
+
Slider: {
|
|
108
|
+
name: string;
|
|
109
|
+
};
|
|
110
|
+
Stepper: {
|
|
111
|
+
decrease: string;
|
|
112
|
+
increase: string;
|
|
113
|
+
};
|
|
114
|
+
Switch: {
|
|
115
|
+
name: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export default idID;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _mergeLocale = require("../utils/merge-locale");
|
|
9
|
+
|
|
10
|
+
var _base = require("./base");
|
|
11
|
+
|
|
12
|
+
const typeTemplate = '${label} bukan ${type} yang valid';
|
|
13
|
+
const idID = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
14
|
+
locale: 'id-ID',
|
|
15
|
+
common: {
|
|
16
|
+
confirm: 'Yakin',
|
|
17
|
+
cancel: 'Batal ',
|
|
18
|
+
loading: 'memuat'
|
|
19
|
+
},
|
|
20
|
+
Calendar: {
|
|
21
|
+
markItems: ['Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu', 'Minggu'],
|
|
22
|
+
renderYearAndMonth: (year, month) => `${year} Tahun ${month} Bulan`
|
|
23
|
+
},
|
|
24
|
+
Cascader: {
|
|
25
|
+
placeholder: 'Silahkan Pilih'
|
|
26
|
+
},
|
|
27
|
+
Dialog: {
|
|
28
|
+
ok: 'Saya mendapatkannya'
|
|
29
|
+
},
|
|
30
|
+
ErrorBlock: {
|
|
31
|
+
default: {
|
|
32
|
+
title: 'Halaman mengalami beberapa permasalahan kecil',
|
|
33
|
+
description: 'Coba lagi nanti'
|
|
34
|
+
},
|
|
35
|
+
busy: {
|
|
36
|
+
title: 'kepadatan diawal',
|
|
37
|
+
description: 'Coba untuk menyegarkan'
|
|
38
|
+
},
|
|
39
|
+
disconnected: {
|
|
40
|
+
title: 'jaringan sedikit sibuk',
|
|
41
|
+
description: 'Gerakkan jari Anda untuk membantu memperbaiki'
|
|
42
|
+
},
|
|
43
|
+
empty: {
|
|
44
|
+
title: 'Itu tidak menemukan apa yang Anda butuhkan',
|
|
45
|
+
description: 'Silahkan cari yang lain'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
Form: {
|
|
49
|
+
required: 'Diperlukan',
|
|
50
|
+
optional: 'opsional untuk diisi',
|
|
51
|
+
defaultValidateMessages: {
|
|
52
|
+
default: 'Kesalahan validasi bidang ${label}',
|
|
53
|
+
required: 'Harap masukkan ${label}',
|
|
54
|
+
enum: '${label} harus salah satu dari [${enum}]',
|
|
55
|
+
whitespace: '${label} tidak boleh berupa karakter kosong',
|
|
56
|
+
date: {
|
|
57
|
+
format: 'Format tanggal ${label} tidak valid',
|
|
58
|
+
parse: '${label} tidak dapat dikonversi ke tanggal',
|
|
59
|
+
invalid: '${label} adalah tanggal yang tidak valid'
|
|
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} harus berupa ${len} karakter',
|
|
78
|
+
min: '${label} Minimal ${min} karakter',
|
|
79
|
+
max: '${label}Maksimum ${max} karakter',
|
|
80
|
+
range: '${label} harus antara ${min}-${max} karakter'
|
|
81
|
+
},
|
|
82
|
+
number: {
|
|
83
|
+
len: '${label} harus sama dengan ${len}',
|
|
84
|
+
min: 'Nilai minimum ${label} adalah ${min}',
|
|
85
|
+
max: '${label} memiliki nilai maksimum ${max}',
|
|
86
|
+
range: '${label} harus antara ${min}-${max}'
|
|
87
|
+
},
|
|
88
|
+
array: {
|
|
89
|
+
len: 'Harus ${len} ${label}',
|
|
90
|
+
min: 'Minimal ${min} ${label}',
|
|
91
|
+
max: 'Hingga ${max} ${label}',
|
|
92
|
+
range: 'Jumlah ${label} harus antara ${min}-${max}'
|
|
93
|
+
},
|
|
94
|
+
pattern: {
|
|
95
|
+
mismatch: '${label} tidak cocok dengan pola ${pattern}'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
ImageUploader: {
|
|
100
|
+
uploading: 'mengunggah...',
|
|
101
|
+
upload: 'diunggah'
|
|
102
|
+
},
|
|
103
|
+
InfiniteScroll: {
|
|
104
|
+
noMore: 'tidak ada lagi',
|
|
105
|
+
failedToLoad: 'Gagal memuat',
|
|
106
|
+
retry: 'memuat ulang'
|
|
107
|
+
},
|
|
108
|
+
Mask: {
|
|
109
|
+
name: 'lapisan pelindung'
|
|
110
|
+
},
|
|
111
|
+
Modal: {
|
|
112
|
+
ok: 'Saya mendapatkannya'
|
|
113
|
+
},
|
|
114
|
+
PullToRefresh: {
|
|
115
|
+
pulling: 'Tarik ke bawah untuk menyegarkan',
|
|
116
|
+
canRelease: 'Lepaskan untuk menyegarkan segera',
|
|
117
|
+
complete: 'Segarkan berhasil'
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
var _default = idID;
|
|
121
|
+
exports.default = _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare const kkKZ: {
|
|
2
|
+
locale: string;
|
|
3
|
+
common: {
|
|
4
|
+
confirm: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
loading: string;
|
|
7
|
+
};
|
|
8
|
+
Calendar: {
|
|
9
|
+
markItems: string[];
|
|
10
|
+
renderYearAndMonth: (year: number, month: number) => string;
|
|
11
|
+
};
|
|
12
|
+
Cascader: {
|
|
13
|
+
placeholder: string;
|
|
14
|
+
};
|
|
15
|
+
Dialog: {
|
|
16
|
+
ok: string;
|
|
17
|
+
};
|
|
18
|
+
ErrorBlock: {
|
|
19
|
+
default: {
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
busy: {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
disconnected: {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
empty: {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
Form: {
|
|
37
|
+
required: string;
|
|
38
|
+
optional: string;
|
|
39
|
+
defaultValidateMessages: {
|
|
40
|
+
default: string;
|
|
41
|
+
required: string;
|
|
42
|
+
enum: string;
|
|
43
|
+
whitespace: string;
|
|
44
|
+
date: {
|
|
45
|
+
format: string;
|
|
46
|
+
parse: string;
|
|
47
|
+
invalid: string;
|
|
48
|
+
};
|
|
49
|
+
types: {
|
|
50
|
+
string: string;
|
|
51
|
+
method: string;
|
|
52
|
+
array: string;
|
|
53
|
+
object: string;
|
|
54
|
+
number: string;
|
|
55
|
+
date: string;
|
|
56
|
+
boolean: string;
|
|
57
|
+
integer: string;
|
|
58
|
+
float: string;
|
|
59
|
+
regexp: string;
|
|
60
|
+
email: string;
|
|
61
|
+
url: string;
|
|
62
|
+
hex: string;
|
|
63
|
+
};
|
|
64
|
+
string: {
|
|
65
|
+
len: string;
|
|
66
|
+
min: string;
|
|
67
|
+
max: string;
|
|
68
|
+
range: string;
|
|
69
|
+
};
|
|
70
|
+
number: {
|
|
71
|
+
len: string;
|
|
72
|
+
min: string;
|
|
73
|
+
max: string;
|
|
74
|
+
range: string;
|
|
75
|
+
};
|
|
76
|
+
array: {
|
|
77
|
+
len: string;
|
|
78
|
+
min: string;
|
|
79
|
+
max: string;
|
|
80
|
+
range: string;
|
|
81
|
+
};
|
|
82
|
+
pattern: {
|
|
83
|
+
mismatch: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
ImageUploader: {
|
|
88
|
+
uploading: string;
|
|
89
|
+
upload: string;
|
|
90
|
+
};
|
|
91
|
+
InfiniteScroll: {
|
|
92
|
+
noMore: string;
|
|
93
|
+
failedToLoad: string;
|
|
94
|
+
retry: string;
|
|
95
|
+
};
|
|
96
|
+
Mask: {
|
|
97
|
+
name: string;
|
|
98
|
+
};
|
|
99
|
+
Modal: {
|
|
100
|
+
ok: string;
|
|
101
|
+
};
|
|
102
|
+
PullToRefresh: {
|
|
103
|
+
pulling: string;
|
|
104
|
+
canRelease: string;
|
|
105
|
+
complete: string;
|
|
106
|
+
};
|
|
107
|
+
Slider: {
|
|
108
|
+
name: string;
|
|
109
|
+
};
|
|
110
|
+
Stepper: {
|
|
111
|
+
decrease: string;
|
|
112
|
+
increase: string;
|
|
113
|
+
};
|
|
114
|
+
Switch: {
|
|
115
|
+
name: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export default kkKZ;
|