@jiovan-labs/ant-buddy-pro 2.0.0 → 2.0.1
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/README.md +1 -2
- package/README.zh-CN.md +55 -0
- package/README.zh-TW.md +55 -0
- package/dist/cjs/field/CountField/index.d.ts +2 -2
- package/dist/cjs/field/LabelField/index.d.ts +2 -2
- package/dist/cjs/field/ThumbToggle/index.d.ts +2 -2
- package/dist/cjs/form/AvatarUpload/index.d.ts +3 -3
- package/dist/cjs/form/AvatarUpload/index.js +6 -3
- package/dist/cjs/form/CronInput/index.js +6 -3
- package/dist/cjs/form/DivideSelect/index.js +17 -15
- package/dist/cjs/form/IconSelect/index.js +31 -23
- package/dist/cjs/form/TagInput/index.d.ts +1 -1
- package/dist/cjs/form/TagInput/index.js +2 -1
- package/dist/cjs/layout/SpaceBox/styles.js +5 -2
- package/dist/cjs/type/declaration.d.ts +1 -1
- package/dist/cjs/util/FieldUtils.d.ts +2 -2
- package/dist/cjs/util/PaginationUtils.js +4 -2
- package/dist/esm/field/CountField/index.d.ts +2 -2
- package/dist/esm/field/LabelField/index.d.ts +2 -2
- package/dist/esm/field/ThumbToggle/index.d.ts +2 -2
- package/dist/esm/form/AvatarUpload/index.d.ts +3 -3
- package/dist/esm/form/AvatarUpload/index.js +3 -3
- package/dist/esm/form/CronInput/index.js +3 -3
- package/dist/esm/form/DivideSelect/index.js +22 -16
- package/dist/esm/form/IconSelect/index.js +74 -68
- package/dist/esm/form/TagInput/index.d.ts +1 -1
- package/dist/esm/form/TagInput/index.js +1 -1
- package/dist/esm/layout/SpaceBox/styles.js +4 -2
- package/dist/esm/type/declaration.d.ts +1 -1
- package/dist/esm/util/FieldUtils.d.ts +2 -2
- package/dist/esm/util/PaginationUtils.js +2 -2
- package/package.json +6 -5
|
@@ -242,7 +242,7 @@ var TagInputField = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
242
242
|
_setTagContents(_contents);
|
|
243
243
|
} else {
|
|
244
244
|
if (warnExists && !proField) {
|
|
245
|
-
messageInvoker.warning(ObjectUtils.firstNotNil(props === null || props === void 0 || (_props$localeProps = props.localeProps) === null || _props$localeProps === void 0 ? void 0 : _props$localeProps.tagExists, intlLocales.get([locale, 'tagExists']), intlLocales.get(['en_US', 'tagExists'])));
|
|
245
|
+
messageInvoker.warning(ObjectUtils.firstNotNil(props === null || props === void 0 || (_props$localeProps = props.localeProps) === null || _props$localeProps === void 0 ? void 0 : _props$localeProps.tagExists, intlLocales.get([locale, 'tagExists']), intlLocales.get(['en_US', 'tagExists']))).then(function () {});
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -11,10 +11,12 @@ var buildFieldStyle = function buildFieldStyle(token) {
|
|
|
11
11
|
return _defineProperty({}, "".concat(token.componentCls), _defineProperty(_defineProperty({
|
|
12
12
|
display: 'inline-block'
|
|
13
13
|
}, "&&-width-block", _defineProperty({
|
|
14
|
+
display: 'flex'
|
|
15
|
+
}, "> ".concat(token.antCls, "-space"), _defineProperty({
|
|
14
16
|
width: '100%'
|
|
15
|
-
}, "> ".concat(token.antCls, "-space"), {
|
|
17
|
+
}, "> ".concat(token.antCls, "-space-item"), {
|
|
16
18
|
width: '100%'
|
|
17
|
-
})), "&&-bound-border", {
|
|
19
|
+
}))), "&&-bound-border", {
|
|
18
20
|
border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
19
21
|
borderRadius: token.borderRadius
|
|
20
22
|
}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TabsType } from 'antd/es/tabs';
|
|
2
2
|
import { type Placement as RcPlacement } from '@rc-component/select/es/BaseSelect';
|
|
3
3
|
export type ActionStyleType = 'success' | 'info' | 'warning' | 'error';
|
|
4
|
-
export type
|
|
4
|
+
export type AxisOrientationType = 'horizontal' | 'vertical';
|
|
5
5
|
export type BeforeAfterType = 'before' | 'after';
|
|
6
6
|
export type ClickHoverType = 'click' | 'hover';
|
|
7
7
|
export type CircleSquareShape = 'circle' | 'square';
|
|
@@ -2,6 +2,6 @@ import { type DefaultOptionType } from 'antd/es/select';
|
|
|
2
2
|
import { type SegmentedLabeledOption } from 'antd/es/segmented';
|
|
3
3
|
import { type ProSchemaValueEnumObj, type ProSchemaValueEnumMap } from '@ant-design/pro-components';
|
|
4
4
|
export declare abstract class FieldUtils {
|
|
5
|
-
static valueEnumToSelectOptions: (source?:
|
|
6
|
-
static valueEnumToSegmentOptions: (source?:
|
|
5
|
+
static valueEnumToSelectOptions: (source?: ProSchemaValueEnumObj | ProSchemaValueEnumMap | ((params: any) => ProSchemaValueEnumMap | ProSchemaValueEnumObj) | undefined) => DefaultOptionType[] | undefined;
|
|
6
|
+
static valueEnumToSegmentOptions: (source?: ProSchemaValueEnumObj | ProSchemaValueEnumMap | ((params: any) => ProSchemaValueEnumMap | ProSchemaValueEnumObj) | undefined) => SegmentedLabeledOption[] | undefined;
|
|
7
7
|
}
|
|
@@ -24,7 +24,7 @@ _defineProperty(PaginationUtils, "reloadAfterDelete", function (actionRef) {
|
|
|
24
24
|
}
|
|
25
25
|
var pageInfo = actionRef.current.pageInfo;
|
|
26
26
|
if (!pageInfo || deletedCount <= 0) {
|
|
27
|
-
actionRef.current.reload();
|
|
27
|
+
actionRef.current.reload().then(function () {});
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
var current = pageInfo.current,
|
|
@@ -37,5 +37,5 @@ _defineProperty(PaginationUtils, "reloadAfterDelete", function (actionRef) {
|
|
|
37
37
|
current: current - 1
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
actionRef.current.reload();
|
|
40
|
+
actionRef.current.reload().then(function () {});
|
|
41
41
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiovan-labs/ant-buddy-pro",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"title": "Ant Buddy Pro",
|
|
5
5
|
"description": "Awesome components based on Ant Design & Ant ProComponents",
|
|
6
6
|
"homepage": "https://jiovan-labs.github.io/ant-buddy-pro",
|
|
@@ -49,10 +49,11 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@ant-design/pro-components": "^3.1.15-9",
|
|
52
|
-
"@jiovan-labs/react-condition": "^2.0.
|
|
53
|
-
"@jiovan-labs/ts-lang-utils": "^2.0.
|
|
54
|
-
"@jiovan-labs/ts-multi-map": "^2.0.
|
|
52
|
+
"@jiovan-labs/react-condition": "^2.0.1",
|
|
53
|
+
"@jiovan-labs/ts-lang-utils": "^2.0.1",
|
|
54
|
+
"@jiovan-labs/ts-multi-map": "^2.0.1",
|
|
55
55
|
"ahooks": "^3.11.0",
|
|
56
|
+
"antd": "^6.7.0",
|
|
56
57
|
"antd-img-crop": "^4.30.0",
|
|
57
58
|
"antd-style": "^4.1.0",
|
|
58
59
|
"cron-validate": "^1.5.3",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"typescript-eslint": "^8.72.1"
|
|
88
89
|
},
|
|
89
90
|
"overrides": {
|
|
90
|
-
"antd": "^6.
|
|
91
|
+
"antd": "^6.7.0",
|
|
91
92
|
"less-loader": "^12.0.0",
|
|
92
93
|
"react": "^19.3.1",
|
|
93
94
|
"react-dom": "^19.3.1"
|