@bit-sun/business-component 4.2.0-alpha.3 → 4.2.0-alpha.31
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/.fatherrc.ts +1 -1
- package/.umirc.ts +13 -9
- package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ImportExport/ExportButton/ModalTitle.d.ts +11 -0
- package/dist/components/Business/ImportExport/ExportButton/TemplatePicker.d.ts +13 -0
- package/dist/components/Business/ImportExport/ExportButton/index.d.ts +15 -0
- package/dist/components/Business/ImportExport/ImportWizard/Preview.d.ts +11 -0
- package/dist/components/Business/ImportExport/ImportWizard/index.d.ts +15 -0
- package/dist/components/Business/ImportExport/TaskDrawer/index.d.ts +15 -0
- package/dist/components/Business/ImportExport/TaskProgress/index.d.ts +15 -0
- package/dist/components/Business/ImportExport/businessFunction.d.ts +15 -0
- package/dist/components/Business/ImportExport/index.d.ts +14 -0
- package/dist/components/Business/ImportExport/sceneCapability.d.ts +20 -0
- package/dist/components/Business/ImportExport/services/importExport.d.ts +22 -0
- package/dist/components/Business/ImportExport/services/routing.d.ts +8 -0
- package/dist/components/Business/ImportExport/types.d.ts +134 -0
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/SystemLog/index.d.ts +78 -0
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/TrialCalculation/index.d.ts +15 -0
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +5 -5
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/pagination.d.ts +22 -0
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +5397 -1220
- package/dist/index.js +5417 -1213
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/dist/utils/auth.d.ts +4 -0
- package/dist/utils/utils.d.ts +41 -0
- package/docs/error-record.md +52 -0
- package/docs/flow-control-readme.md +283 -0
- package/docs/task-records/2026-07-31-import-export-extraction.md +81 -0
- package/package.json +1 -1
- package/src/components/Business/AddSelectBusiness/index.tsx +3 -2
- package/src/components/Business/BsSulaQueryTable/index.md +57 -4
- package/src/components/Business/BsSulaQueryTable/index.tsx +174 -10
- package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
- package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
- package/src/components/Business/DetailPageWrapper/readme.md +89 -0
- package/src/components/Business/ImportExport/ExportButton/ModalTitle.tsx +27 -0
- package/src/components/Business/ImportExport/ExportButton/TemplatePicker.tsx +424 -0
- package/src/components/Business/ImportExport/ExportButton/index.module.less +382 -0
- package/src/components/Business/ImportExport/ExportButton/index.tsx +273 -0
- package/src/components/Business/ImportExport/ImportWizard/Preview.tsx +129 -0
- package/src/components/Business/ImportExport/ImportWizard/index.module.less +360 -0
- package/src/components/Business/ImportExport/ImportWizard/index.tsx +679 -0
- package/src/components/Business/ImportExport/TaskDrawer/index.tsx +285 -0
- package/src/components/Business/ImportExport/TaskProgress/index.tsx +267 -0
- package/src/components/Business/ImportExport/businessFunction.ts +29 -0
- package/src/components/Business/ImportExport/index.md +104 -0
- package/src/components/Business/ImportExport/index.tsx +208 -0
- package/src/components/Business/ImportExport/sceneCapability.ts +28 -0
- package/src/components/Business/ImportExport/services/importExport.ts +208 -0
- package/src/components/Business/ImportExport/services/routing.ts +21 -0
- package/src/components/Business/ImportExport/types.ts +180 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +704 -48
- package/src/components/Business/SearchSelect/index.md +2 -2
- package/src/components/Business/SystemLog/index.md +37 -0
- package/src/components/Business/SystemLog/index.tsx +87 -0
- package/src/components/Business/TrialCalculation/PathDisplay.less +93 -0
- package/src/components/Business/TrialCalculation/PathDisplay_README.md +77 -0
- package/src/components/Business/TrialCalculation/index.tsx +322 -0
- package/src/components/Business/columnSettingTable/index.tsx +7 -6
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
- package/src/components/Functional/AddSelect/index.tsx +95 -1
- package/src/components/Functional/DataValidation/index.tsx +31 -9
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -2
- package/src/components/Functional/SearchSelect/index.md +109 -0
- package/src/components/Functional/SearchSelect/index.tsx +99 -17
- package/src/components/Functional/SearchSelect/pagination.ts +57 -0
- package/src/components/Functional/SearchSelect/utils.tsx +28 -18
- package/src/components/Functional/TreeSearchSelect/index.tsx +2 -1
- package/src/components/Solution/RuleComponent/README.md +187 -0
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
- package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
- package/src/components/Solution/RuleComponent/RuleField.md +63 -0
- package/src/components/Solution/RuleComponent/index.js +237 -8
- package/src/components/Solution/RuleComponent/ruleFiled.js +46 -6
- package/src/components/Solution/RuleSetter/README.md +97 -0
- package/src/index.ts +9 -0
- package/src/typings/umi.d.ts +9 -0
- package/src/utils/LocalstorageUtils.ts +1 -1
- package/src/utils/auth.ts +39 -2
- package/src/utils/utils.ts +41 -1
package/.fatherrc.ts
CHANGED
package/.umirc.ts
CHANGED
|
@@ -35,7 +35,7 @@ export default defineConfig({
|
|
|
35
35
|
proxy: {
|
|
36
36
|
'/bop/api/': {
|
|
37
37
|
// target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
|
|
38
|
-
target: 'https://
|
|
38
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 测试环境
|
|
39
39
|
// target: 'http://yxzttest.yangzijiang.com/', // 扬子江测试环境
|
|
40
40
|
// target: 'http://yxzt.yangzijiang.com/', // 扬子江测试环境
|
|
41
41
|
changeOrigin: true,
|
|
@@ -48,37 +48,41 @@ export default defineConfig({
|
|
|
48
48
|
// target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
|
|
49
49
|
// 英伦
|
|
50
50
|
// target: 'http://47.100.87.54:9102/', // 开发环境
|
|
51
|
-
target: 'https://
|
|
51
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 测试环境
|
|
52
52
|
// target: 'http://www.i-baby.net/', // 生产
|
|
53
53
|
changeOrigin: true,
|
|
54
54
|
// pathRewrite: { '^/wms-ops/': '/wms-ops/' }, // 开发环境
|
|
55
55
|
},
|
|
56
56
|
'/user/': {
|
|
57
|
-
target: 'https://
|
|
57
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
|
|
58
58
|
changeOrigin: true,
|
|
59
59
|
},
|
|
60
60
|
'/drp-ops/': {
|
|
61
|
-
target: 'https://
|
|
61
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
|
|
62
62
|
changeOrigin: true,
|
|
63
63
|
},
|
|
64
64
|
'/channel-manage/': {
|
|
65
|
-
target: 'https://
|
|
65
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
|
|
66
66
|
changeOrigin: true,
|
|
67
67
|
},
|
|
68
68
|
'/items/': {
|
|
69
|
-
target: 'https://
|
|
69
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
|
|
70
70
|
changeOrigin: true,
|
|
71
71
|
},
|
|
72
72
|
'/stock/': {
|
|
73
|
-
target: 'https://
|
|
73
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
|
|
74
|
+
changeOrigin: true,
|
|
75
|
+
},
|
|
76
|
+
'/settle/': {
|
|
77
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
|
|
74
78
|
changeOrigin: true,
|
|
75
79
|
},
|
|
76
80
|
'/basic/': {
|
|
77
|
-
target: 'https://
|
|
81
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
|
|
78
82
|
changeOrigin: true,
|
|
79
83
|
},
|
|
80
84
|
'/srm-ops/': {
|
|
81
|
-
target: 'https://
|
|
85
|
+
target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
|
|
82
86
|
changeOrigin: true,
|
|
83
87
|
},
|
|
84
88
|
},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const AddSpuSelect: (parProps: any) => React.JSX.Element;
|
|
1
|
+
export declare const AddSkuSelect: (parProps: any) => JSX.Element;
|
|
2
|
+
export declare const AddSkcSelect: (parProps: any) => JSX.Element;
|
|
3
|
+
export declare const AddSpuSelect: (parProps: any) => JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
declare const DrawContent: ({ onClose, itemPath }: any) =>
|
|
3
|
+
declare const DrawContent: ({ onClose, itemPath }: any) => JSX.Element;
|
|
5
4
|
export default DrawContent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const MenuSetting: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const MenuSetting: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default MenuSetting;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ declare class LeftTree extends React.Component<any> {
|
|
|
12
12
|
onChange: (e: any) => void;
|
|
13
13
|
getPathList: (originData: any) => Array<any>;
|
|
14
14
|
handleAdd2Menu: (path: string) => void;
|
|
15
|
-
render():
|
|
15
|
+
render(): JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
export default LeftTree;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare class rightTree extends React.Component<any> {
|
|
|
24
24
|
handleBatchDelete: () => void;
|
|
25
25
|
handleAddTreeNode: (e: any, item: any) => void;
|
|
26
26
|
onCheck: (checkedKeysValue: React.Key[]) => void;
|
|
27
|
-
getChildMenu: (item: any) =>
|
|
28
|
-
render():
|
|
27
|
+
getChildMenu: (item: any) => JSX.Element;
|
|
28
|
+
render(): JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export default rightTree;
|
package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => React.JSX.Element;
|
|
1
|
+
declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => JSX.Element;
|
|
3
2
|
export default CustomerMenuHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const CustomerMenu: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const CustomerMenu: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default CustomerMenu;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import './index.less';
|
|
3
2
|
export declare const judgeIsEmpty: (value: any) => boolean;
|
|
4
|
-
declare const GlobalHeaderCom: (props: any) =>
|
|
3
|
+
declare const GlobalHeaderCom: (props: any) => JSX.Element;
|
|
5
4
|
export default GlobalHeaderCom;
|
|
@@ -25,13 +25,13 @@ declare class SearchItemTable extends React.Component {
|
|
|
25
25
|
} | {
|
|
26
26
|
title: string;
|
|
27
27
|
dataIndex: string;
|
|
28
|
-
render: (text: any, record: any) =>
|
|
28
|
+
render: (text: any, record: any) => JSX.Element;
|
|
29
29
|
className?: undefined;
|
|
30
30
|
} | {
|
|
31
31
|
title: string;
|
|
32
32
|
dataIndex: string;
|
|
33
33
|
className: string;
|
|
34
|
-
render: () =>
|
|
34
|
+
render: () => JSX.Element;
|
|
35
35
|
})[];
|
|
36
36
|
showModal: () => void;
|
|
37
37
|
handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -41,18 +41,18 @@ declare class SearchItemTable extends React.Component {
|
|
|
41
41
|
oldIndex: any;
|
|
42
42
|
newIndex: any;
|
|
43
43
|
}) => void;
|
|
44
|
-
DraggableContainer: (props: any) =>
|
|
44
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
45
45
|
DraggableBodyRow: ({ className, style, ...restProps }: {
|
|
46
46
|
[x: string]: any;
|
|
47
47
|
className: any;
|
|
48
48
|
style: any;
|
|
49
|
-
}) =>
|
|
49
|
+
}) => JSX.Element;
|
|
50
50
|
onChange: (e: CheckboxChangeEvent, name: any) => void;
|
|
51
51
|
handleReset: () => void;
|
|
52
52
|
handleResetSetting: () => void;
|
|
53
53
|
onSearch: (e: any) => void;
|
|
54
54
|
onSearchSort: (e: any) => void;
|
|
55
55
|
showSearchItemLabel: (item: object) => any;
|
|
56
|
-
render():
|
|
56
|
+
render(): JSX.Element;
|
|
57
57
|
}
|
|
58
58
|
export default SearchItemTable;
|
|
@@ -25,18 +25,18 @@ declare class SortableTable extends React.Component {
|
|
|
25
25
|
dataIndex: string;
|
|
26
26
|
className: string;
|
|
27
27
|
width: number;
|
|
28
|
-
render: (text: any, record: any) =>
|
|
28
|
+
render: (text: any, record: any) => JSX.Element;
|
|
29
29
|
} | {
|
|
30
30
|
title: string;
|
|
31
31
|
dataIndex: string;
|
|
32
|
-
render: (text: any, record: any) =>
|
|
32
|
+
render: (text: any, record: any) => JSX.Element | null;
|
|
33
33
|
className?: undefined;
|
|
34
34
|
width?: undefined;
|
|
35
35
|
} | {
|
|
36
36
|
title: string;
|
|
37
37
|
dataIndex: string;
|
|
38
38
|
className: string;
|
|
39
|
-
render: () =>
|
|
39
|
+
render: () => JSX.Element;
|
|
40
40
|
width?: undefined;
|
|
41
41
|
})[];
|
|
42
42
|
showModal: () => void;
|
|
@@ -47,17 +47,17 @@ declare class SortableTable extends React.Component {
|
|
|
47
47
|
oldIndex: any;
|
|
48
48
|
newIndex: any;
|
|
49
49
|
}) => void;
|
|
50
|
-
DraggableContainer: (props: any) =>
|
|
50
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
51
51
|
DraggableBodyRow: ({ className, style, ...restProps }: {
|
|
52
52
|
[x: string]: any;
|
|
53
53
|
className: any;
|
|
54
54
|
style: any;
|
|
55
|
-
}) =>
|
|
55
|
+
}) => JSX.Element;
|
|
56
56
|
onChange: (e: CheckboxChangeEvent, title: any) => void;
|
|
57
57
|
handleReset: () => void;
|
|
58
58
|
handleResetSetting: () => Promise<unknown>;
|
|
59
59
|
onSearch: (e: any) => void;
|
|
60
60
|
onSearchSort: (e: any) => void;
|
|
61
|
-
render():
|
|
61
|
+
render(): JSX.Element;
|
|
62
62
|
}
|
|
63
63
|
export default SortableTable;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import moment from 'moment';
|
|
3
2
|
import './utils.less';
|
|
4
|
-
export declare const handleStatusBadge: (text: any, color: any) =>
|
|
5
|
-
export declare const HandleTotalCount: (totalParams: any) =>
|
|
3
|
+
export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
|
|
4
|
+
export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
|
|
6
5
|
export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
7
6
|
type: string;
|
|
8
7
|
width: number;
|
|
@@ -42,18 +41,18 @@ export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) =
|
|
|
42
41
|
};
|
|
43
42
|
export declare const renderZeroInSummary: (value: any) => number | "-";
|
|
44
43
|
export declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
45
|
-
export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) =>
|
|
46
|
-
export declare const handleTextLineFeed: (text: string | undefined, width?: number) =>
|
|
47
|
-
export declare const handleTextOverflow: (text: string | undefined, width?: number) =>
|
|
48
|
-
export declare const handleTextOverflowNoTooltip: (text: string | undefined, width?: number) =>
|
|
49
|
-
export declare const handleTooltip: (text: any, timeTrue?: boolean) =>
|
|
50
|
-
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) =>
|
|
44
|
+
export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
45
|
+
export declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
|
|
46
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
47
|
+
export declare const handleTextOverflowNoTooltip: (text: string | undefined, width?: number) => JSX.Element;
|
|
48
|
+
export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
49
|
+
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
51
50
|
type tableColumnsImageType = {
|
|
52
51
|
width?: number | string;
|
|
53
52
|
height?: number | string;
|
|
54
53
|
[key: string]: any;
|
|
55
54
|
};
|
|
56
|
-
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) =>
|
|
55
|
+
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
57
56
|
type UserColumnsType = {
|
|
58
57
|
name: string;
|
|
59
58
|
department?: string;
|
|
@@ -61,8 +60,8 @@ type UserColumnsType = {
|
|
|
61
60
|
company?: string;
|
|
62
61
|
avatar?: string;
|
|
63
62
|
};
|
|
64
|
-
export declare const userColumns: (props: UserColumnsType) =>
|
|
65
|
-
export declare const userInfoCard: (props: any) =>
|
|
63
|
+
export declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
64
|
+
export declare const userInfoCard: (props: any) => JSX.Element;
|
|
66
65
|
export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
|
|
67
66
|
export declare function handleCommonTimeRender(text: any, format?: any): any;
|
|
68
67
|
interface ColumnsEditInterfave {
|
|
@@ -80,9 +79,9 @@ interface ColumnsEditInterfave {
|
|
|
80
79
|
};
|
|
81
80
|
[key: string]: any;
|
|
82
81
|
}
|
|
83
|
-
export declare const ColumnsEdit: (props: ColumnsEditInterfave) =>
|
|
84
|
-
export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) =>
|
|
85
|
-
export declare const textIcon: (type: string | number, text?: string) =>
|
|
82
|
+
export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
83
|
+
export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
84
|
+
export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
|
|
86
85
|
export declare const renderFixed2: (text: any) => any;
|
|
87
86
|
export declare const getItemDefaultWidth: (item: any) => number;
|
|
88
87
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export default class GuideWrapper extends Component {
|
|
4
|
-
static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) =>
|
|
5
|
-
render():
|
|
4
|
+
static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) => JSX.Element;
|
|
5
|
+
render(): JSX.Element;
|
|
6
6
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
export declare const iconMap: {
|
|
4
|
-
edit:
|
|
5
|
-
delete:
|
|
6
|
-
submit:
|
|
7
|
-
more:
|
|
8
|
-
hangUp:
|
|
9
|
-
unhook:
|
|
10
|
-
refresh:
|
|
11
|
-
print:
|
|
12
|
-
copy:
|
|
13
|
-
cancel:
|
|
3
|
+
edit: JSX.Element;
|
|
4
|
+
delete: JSX.Element;
|
|
5
|
+
submit: JSX.Element;
|
|
6
|
+
more: JSX.Element;
|
|
7
|
+
hangUp: JSX.Element;
|
|
8
|
+
unhook: JSX.Element;
|
|
9
|
+
refresh: JSX.Element;
|
|
10
|
+
print: JSX.Element;
|
|
11
|
+
copy: JSX.Element;
|
|
12
|
+
cancel: JSX.Element;
|
|
14
13
|
};
|
|
15
|
-
declare const _default: (props: any) =>
|
|
14
|
+
declare const _default: (props: any) => JSX.Element;
|
|
16
15
|
export default _default;
|
|
16
|
+
export declare const processDetailButtonsVisible: (buttons: any[], params: any) => any[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ModalTitleProps {
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
description: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 统一导出弹窗标题区的图标、主标题和辅助说明。
|
|
9
|
+
*/
|
|
10
|
+
declare const ModalTitle: React.FC<ModalTitleProps>;
|
|
11
|
+
export default ModalTitle;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImportExportRequestContext, ImportExportServices } from '../types';
|
|
3
|
+
interface TemplatePickerProps {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
context: ImportExportRequestContext;
|
|
6
|
+
services: ImportExportServices;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
onConfirm: (templateCode: string, fileType: string) => Promise<void>;
|
|
9
|
+
documentName?: string;
|
|
10
|
+
resultCount?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const TemplatePicker: React.FC<TemplatePickerProps>;
|
|
13
|
+
export default TemplatePicker;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FileTask, ImportExportConfig, ImportExportRequestContext, ImportExportServices } from '../types';
|
|
3
|
+
export interface ExportButtonProps {
|
|
4
|
+
config: ImportExportConfig;
|
|
5
|
+
services: ImportExportServices;
|
|
6
|
+
resolveRequestContext: () => Promise<ImportExportRequestContext | undefined>;
|
|
7
|
+
showQuickExport: boolean;
|
|
8
|
+
showTemplateExport: boolean;
|
|
9
|
+
onTaskCreated: (task: FileTask) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 提供快速导出和按模板导出入口。
|
|
13
|
+
*/
|
|
14
|
+
declare const ExportButton: React.FC<ExportButtonProps>;
|
|
15
|
+
export default ExportButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PreviewProps {
|
|
3
|
+
preview: any;
|
|
4
|
+
onBack: () => void;
|
|
5
|
+
onExecute: () => void;
|
|
6
|
+
onDownloadErrorFile: () => void;
|
|
7
|
+
executing: boolean;
|
|
8
|
+
downloadingErrorFile: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Preview: React.FC<PreviewProps>;
|
|
11
|
+
export default Preview;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FileTask, ImportExportRequestContext, ImportExportServices } from '../types';
|
|
3
|
+
export interface ImportWizardProps {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
context: ImportExportRequestContext;
|
|
6
|
+
documentName?: string;
|
|
7
|
+
services: ImportExportServices;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onTaskCreated?: (task: FileTask) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 完成模板选择、文件上传、数据校验和正式导入的两步向导。
|
|
13
|
+
*/
|
|
14
|
+
declare const ImportWizard: React.FC<ImportWizardProps>;
|
|
15
|
+
export default ImportWizard;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImportExportServices } from '../types';
|
|
3
|
+
export interface TaskDrawerProps {
|
|
4
|
+
/** 最近任务对应的业务功能编码集合。 */
|
|
5
|
+
businessFunctionCodes: string[];
|
|
6
|
+
services: ImportExportServices;
|
|
7
|
+
/** 任务中心路由。 */
|
|
8
|
+
taskCenterPath?: string;
|
|
9
|
+
onNavigateTaskCenter?: (path: string) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 展示当前业务功能最近的文件任务。
|
|
13
|
+
*/
|
|
14
|
+
declare const TaskDrawer: React.FC<TaskDrawerProps>;
|
|
15
|
+
export default TaskDrawer;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FileTask, ImportExportServices } from '../types';
|
|
3
|
+
export interface TaskProgressProps {
|
|
4
|
+
tasks: FileTask[];
|
|
5
|
+
services: ImportExportServices;
|
|
6
|
+
taskCenterPath?: string;
|
|
7
|
+
onNavigateTaskCenter?: (path: string) => void;
|
|
8
|
+
onTaskUpdated: (task: FileTask) => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 轮询并展示当前页面创建的文件任务进度。
|
|
13
|
+
*/
|
|
14
|
+
declare const TaskProgress: React.FC<TaskProgressProps>;
|
|
15
|
+
export default TaskProgress;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ImportExportOperationType } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 导入导出按钮权限编码集合。
|
|
4
|
+
*/
|
|
5
|
+
export interface ImportExportAuthCodes {
|
|
6
|
+
importCode: string;
|
|
7
|
+
quickExportCode: string;
|
|
8
|
+
templateExportCode: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 根据操作类型和按钮权限编码解析关联的业务功能编码。
|
|
12
|
+
*
|
|
13
|
+
* 导入使用独立入口;快速导出和模板导出共用任一已配置的导出入口。
|
|
14
|
+
*/
|
|
15
|
+
export declare const resolveBusinessFunctionCode: (operationType: ImportExportOperationType, authCodes: ImportExportAuthCodes) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImportExportActionsProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* 统一承载导入、快速导出、模板导出和文件任务入口。
|
|
5
|
+
*/
|
|
6
|
+
export declare const ImportExportActions: React.FC<ImportExportActionsProps>;
|
|
7
|
+
export { default as ImportWizard } from './ImportWizard';
|
|
8
|
+
export { default as ExportButton } from './ExportButton';
|
|
9
|
+
export { default as TaskProgress } from './TaskProgress';
|
|
10
|
+
export { default as TaskDrawer } from './TaskDrawer';
|
|
11
|
+
export * from './types';
|
|
12
|
+
export * from './services/importExport';
|
|
13
|
+
export * from './sceneCapability';
|
|
14
|
+
export * from './businessFunction';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 导入导出场景能力开关。
|
|
3
|
+
*/
|
|
4
|
+
export interface SceneCapabilityConfig {
|
|
5
|
+
multiSheet?: boolean;
|
|
6
|
+
horizontalExport?: boolean;
|
|
7
|
+
largeFile?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 判断是否启用多工作表能力。
|
|
11
|
+
*/
|
|
12
|
+
export declare const isMultiSheetEnabled: (config?: SceneCapabilityConfig) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 判断是否启用横向导出能力。
|
|
15
|
+
*/
|
|
16
|
+
export declare const isHorizontalExportEnabled: (config?: SceneCapabilityConfig) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 判断是否启用大文件导出能力。
|
|
19
|
+
*/
|
|
20
|
+
export declare const isLargeFileExportEnabled: (config?: SceneCapabilityConfig) => boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ImportExportRequest, ImportExportServices } from '../types';
|
|
2
|
+
export { buildSdkUrl, normalizeServiceContext } from './routing';
|
|
3
|
+
export declare const concurrentLimitCode = "IE-COM-CONCURRENT-FILE-LIMIT";
|
|
4
|
+
/**
|
|
5
|
+
* 使用业务项目提供的请求函数创建完整导入导出服务。
|
|
6
|
+
*
|
|
7
|
+
* 请求函数由消费方注入,以复用其鉴权、租户和异常处理拦截器。
|
|
8
|
+
*/
|
|
9
|
+
export declare const createImportExportServices: (request: ImportExportRequest, overrides?: Partial<ImportExportServices>) => ImportExportServices;
|
|
10
|
+
/**
|
|
11
|
+
* 使用宿主项目的 Umi 请求实例创建默认导入导出服务。
|
|
12
|
+
*/
|
|
13
|
+
export declare const defaultImportExportServices: ImportExportServices;
|
|
14
|
+
/**
|
|
15
|
+
* 将业务侧差异服务合并到默认导入导出服务。
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveImportExportServices: (overrides?: Partial<ImportExportServices>) => ImportExportServices;
|
|
18
|
+
export declare const unwrapResponse: <T = any>(response: any) => T;
|
|
19
|
+
export declare const getItems: <T = any>(response: any) => T[];
|
|
20
|
+
export declare const normalizeTask: (task: any) => any;
|
|
21
|
+
export declare const taskTypeName: (taskType?: string) => string;
|
|
22
|
+
export declare const isConcurrentLimit: (response: any) => boolean;
|