@bit-sun/business-component 4.2.0-alpha.3 → 4.2.0-alpha.30
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 +5413 -1215
- package/dist/index.js +5433 -1208
- 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 +713 -43
- 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
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 导入导出的操作类型。
|
|
3
|
+
*/
|
|
4
|
+
export type ImportExportOperationType = 'IMPORT' | 'EXPORT';
|
|
5
|
+
/**
|
|
6
|
+
* 导入导出功能的业务侧配置。
|
|
7
|
+
*/
|
|
8
|
+
export interface ImportExportConfig {
|
|
9
|
+
documentName: string;
|
|
10
|
+
getQueryParams?: () => Record<string, any>;
|
|
11
|
+
getResultCount?: () => number | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 业务功能解析结果。
|
|
15
|
+
*/
|
|
16
|
+
export interface ImportExportBusinessFunction {
|
|
17
|
+
functionCode: string;
|
|
18
|
+
functionName?: string;
|
|
19
|
+
serviceName: string;
|
|
20
|
+
serviceContext: string;
|
|
21
|
+
status: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 一次导入或导出操作所需的请求上下文。
|
|
25
|
+
*/
|
|
26
|
+
export interface ImportExportRequestContext {
|
|
27
|
+
businessFunctionCode: string;
|
|
28
|
+
serviceContext: string;
|
|
29
|
+
operationType: ImportExportOperationType;
|
|
30
|
+
conditions?: Record<string, any>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 导入导出模板摘要。
|
|
34
|
+
*/
|
|
35
|
+
export interface ImportExportTemplate {
|
|
36
|
+
templateCode: string;
|
|
37
|
+
templateName: string;
|
|
38
|
+
visibility?: 'PUBLIC' | 'PERSONAL';
|
|
39
|
+
businessFunctionCode?: string;
|
|
40
|
+
defaultFlag?: boolean;
|
|
41
|
+
enabled?: boolean;
|
|
42
|
+
metadataEntityCode?: string;
|
|
43
|
+
fieldCount?: number;
|
|
44
|
+
fieldNames?: string[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 模板字段定义。
|
|
48
|
+
*/
|
|
49
|
+
export interface ImportExportTemplateField {
|
|
50
|
+
fieldCode: string;
|
|
51
|
+
displayName?: string;
|
|
52
|
+
mapped?: boolean;
|
|
53
|
+
required?: boolean;
|
|
54
|
+
groupKey?: boolean;
|
|
55
|
+
fieldStatus?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 导入导出异步任务。
|
|
59
|
+
*/
|
|
60
|
+
export interface FileTask {
|
|
61
|
+
taskId: string;
|
|
62
|
+
taskType: string;
|
|
63
|
+
templateName?: string;
|
|
64
|
+
taskStatus: string;
|
|
65
|
+
progress?: number;
|
|
66
|
+
processedCount?: number;
|
|
67
|
+
totalCount?: number;
|
|
68
|
+
elapsedSeconds?: number;
|
|
69
|
+
successCount?: number;
|
|
70
|
+
failedCount?: number;
|
|
71
|
+
skippedCount?: number;
|
|
72
|
+
operatorName?: string;
|
|
73
|
+
fileName?: string;
|
|
74
|
+
createdTime?: string;
|
|
75
|
+
resultDownloadUrl?: string;
|
|
76
|
+
errorDownloadUrl?: string;
|
|
77
|
+
errorMessage?: string;
|
|
78
|
+
serviceContext?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 业务项目请求函数需要支持的最小请求参数。
|
|
82
|
+
*/
|
|
83
|
+
export interface ImportExportRequestOptions {
|
|
84
|
+
method: 'GET' | 'POST';
|
|
85
|
+
data?: any;
|
|
86
|
+
params?: Record<string, any>;
|
|
87
|
+
responseType?: 'json' | 'text' | 'blob' | 'arrayBuffer' | 'formData';
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* 由业务项目注入的请求函数。
|
|
91
|
+
*/
|
|
92
|
+
export type ImportExportRequest = (url: string, options: ImportExportRequestOptions) => Promise<any>;
|
|
93
|
+
/**
|
|
94
|
+
* 导入导出流程依赖的后端服务集合。
|
|
95
|
+
*/
|
|
96
|
+
export interface ImportExportServices {
|
|
97
|
+
resolveBusinessFunction: (businessFunctionCode: string) => Promise<any>;
|
|
98
|
+
queryTemplates: (data: Record<string, any>) => Promise<any>;
|
|
99
|
+
queryTemplateFields: (data: Record<string, any>) => Promise<any>;
|
|
100
|
+
uploadFile: (file: File) => Promise<any>;
|
|
101
|
+
downloadTemplate: (templateCode: string, data: Record<string, any>) => Promise<any>;
|
|
102
|
+
previewImport: (serviceContext: string, data: Record<string, any>) => Promise<any>;
|
|
103
|
+
executeImport: (serviceContext: string, data: Record<string, any>) => Promise<any>;
|
|
104
|
+
downloadValidationErrorFile: (serviceContext: string, data: Record<string, any>) => Promise<any>;
|
|
105
|
+
quickExport: (serviceContext: string, data: Record<string, any>) => Promise<any>;
|
|
106
|
+
templateExport: (serviceContext: string, data: Record<string, any>) => Promise<any>;
|
|
107
|
+
queryRecentTasks: (data: Record<string, any>) => Promise<any>;
|
|
108
|
+
queryTask: (serviceContext: string, taskCode: string) => Promise<any>;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* 导入导出操作区属性。
|
|
112
|
+
*/
|
|
113
|
+
export interface ImportExportActionsProps {
|
|
114
|
+
/** 导入导出业务配置。 */
|
|
115
|
+
config: ImportExportConfig;
|
|
116
|
+
/** 导入导出服务集合。 */
|
|
117
|
+
services?: Partial<ImportExportServices>;
|
|
118
|
+
/** 导入按钮权限编码。 */
|
|
119
|
+
importCode: string;
|
|
120
|
+
/** 快速导出按钮权限编码。 */
|
|
121
|
+
quickExportCode: string;
|
|
122
|
+
/** 模板导出按钮权限编码。 */
|
|
123
|
+
templateExportCode: string;
|
|
124
|
+
/** 任务中心路由。 */
|
|
125
|
+
taskCenterPath?: string;
|
|
126
|
+
/** 是否显示最近任务入口。 */
|
|
127
|
+
showTaskDrawer?: boolean;
|
|
128
|
+
/** 覆盖默认任务中心跳转行为。 */
|
|
129
|
+
onNavigateTaskCenter?: (path: string) => void;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* 根据业务配置和后端服务上下文生成一次导入或导出请求上下文。
|
|
133
|
+
*/
|
|
134
|
+
export declare const createRequestContext: (config: ImportExportConfig, businessFunctionCode: string, serviceContext: string, operationType: ImportExportOperationType) => ImportExportRequestContext;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => React.JSX.Element;
|
|
1
|
+
declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => JSX.Element;
|
|
3
2
|
export default ItemPropertySelector;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import "./index.less";
|
|
3
2
|
interface propertyValueType {
|
|
4
3
|
propertyName: string;
|
|
@@ -19,5 +18,5 @@ declare const PropertySelector: ({ value, onChange, width, ...restProps }: {
|
|
|
19
18
|
value: valueType;
|
|
20
19
|
onChange: any;
|
|
21
20
|
width: string;
|
|
22
|
-
}) =>
|
|
21
|
+
}) => JSX.Element;
|
|
23
22
|
export default PropertySelector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
|
|
3
3
|
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
declare const SystemLog: ({ modeType, code, containerName, renderLogRef, extraParams, }: {
|
|
2
|
+
modeType: string;
|
|
3
|
+
code: any;
|
|
4
|
+
containerName: string;
|
|
5
|
+
renderLogRef: object;
|
|
6
|
+
extraParams?: object | undefined;
|
|
7
|
+
}) => {
|
|
8
|
+
initialVisible: boolean;
|
|
9
|
+
fields: {
|
|
10
|
+
name: string;
|
|
11
|
+
label: boolean;
|
|
12
|
+
itemLayout: {
|
|
13
|
+
span: number;
|
|
14
|
+
labelCol: {
|
|
15
|
+
span: number;
|
|
16
|
+
};
|
|
17
|
+
wrapperCol: {
|
|
18
|
+
span: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
field: (ctx: any) => any;
|
|
22
|
+
}[];
|
|
23
|
+
container: {
|
|
24
|
+
type: string;
|
|
25
|
+
props: {
|
|
26
|
+
title: any;
|
|
27
|
+
id: number;
|
|
28
|
+
level: number;
|
|
29
|
+
name: string;
|
|
30
|
+
bordered?: undefined;
|
|
31
|
+
isWhiteCard?: undefined;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
itemLayout: {
|
|
35
|
+
span: number;
|
|
36
|
+
labelCol: {
|
|
37
|
+
span: number;
|
|
38
|
+
};
|
|
39
|
+
wrapperCol: {
|
|
40
|
+
span: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
initialVisible: boolean;
|
|
45
|
+
fields: {
|
|
46
|
+
name: string;
|
|
47
|
+
label: boolean;
|
|
48
|
+
itemLayout: {
|
|
49
|
+
span: number;
|
|
50
|
+
labelCol: {
|
|
51
|
+
span: number;
|
|
52
|
+
};
|
|
53
|
+
wrapperCol: {
|
|
54
|
+
span: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
field: (ctx: any) => any;
|
|
58
|
+
}[];
|
|
59
|
+
container: {
|
|
60
|
+
type: string;
|
|
61
|
+
props: {
|
|
62
|
+
title: any;
|
|
63
|
+
id: number;
|
|
64
|
+
level: number;
|
|
65
|
+
bordered: null;
|
|
66
|
+
isWhiteCard: boolean;
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
itemLayout: {
|
|
71
|
+
wrapperCol: {
|
|
72
|
+
span: number;
|
|
73
|
+
};
|
|
74
|
+
span?: undefined;
|
|
75
|
+
labelCol?: undefined;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export default SystemLog;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './PathDisplay.less';
|
|
3
|
+
interface PathDisplayProps {
|
|
4
|
+
recordType?: string;
|
|
5
|
+
businessType?: string;
|
|
6
|
+
sendOrgCode?: string;
|
|
7
|
+
receiverOrgCode?: string;
|
|
8
|
+
orderNo?: string;
|
|
9
|
+
autoCallApi?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface PathDisplayRef {
|
|
12
|
+
fetchData: () => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
declare const PathDisplay: React.ForwardRefExoticComponent<PathDisplayProps & React.RefAttributes<PathDisplayRef>>;
|
|
15
|
+
export default PathDisplay;
|
|
@@ -25,18 +25,18 @@ declare class SortableTable extends React.Component<SortTableProps> {
|
|
|
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;
|
|
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;
|
|
@@ -44,14 +44,14 @@ declare class SortableTable extends React.Component<SortTableProps> {
|
|
|
44
44
|
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
45
45
|
handleTableHeadHidden: (title: string) => void;
|
|
46
46
|
onSortEnd: ({ oldIndex, newIndex }: any) => void;
|
|
47
|
-
DraggableContainer: (props: any) =>
|
|
48
|
-
DraggableBodyRow: ({ className, style, ...restProps }: any) =>
|
|
47
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
48
|
+
DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
|
|
49
49
|
onChange: (e: any, title: any) => void;
|
|
50
50
|
handleReset: () => void;
|
|
51
51
|
handleResetSetting: () => Promise<unknown>;
|
|
52
52
|
onSearch: (e: any) => void;
|
|
53
53
|
onSearchSort: (e: any) => void;
|
|
54
54
|
getConfigFromlocalstorage: () => any;
|
|
55
|
-
render():
|
|
55
|
+
render(): JSX.Element;
|
|
56
56
|
}
|
|
57
57
|
export default SortableTable;
|
|
@@ -19,10 +19,10 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
19
19
|
* 合计行逻辑
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
|
-
getTableSummaryInfo: () => () =>
|
|
22
|
+
getTableSummaryInfo: () => () => JSX.Element;
|
|
23
23
|
handledynamicColumns: (col: any[]) => any[];
|
|
24
24
|
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
25
|
-
ResizeableTitle: (props: any) =>
|
|
25
|
+
ResizeableTitle: (props: any) => JSX.Element;
|
|
26
26
|
getTableScrollXWidth: (cols: any[]) => any;
|
|
27
27
|
/**
|
|
28
28
|
* 处理行点击事件
|
|
@@ -30,5 +30,5 @@ export default class ColumnSettingTable extends React.Component {
|
|
|
30
30
|
*/
|
|
31
31
|
handleRowClick: (record: any) => void;
|
|
32
32
|
recalculateSummary: (nextProps: any) => void;
|
|
33
|
-
render():
|
|
33
|
+
render(): JSX.Element;
|
|
34
34
|
}
|
|
@@ -19,10 +19,10 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
19
19
|
* 合计行逻辑
|
|
20
20
|
* @returns
|
|
21
21
|
*/
|
|
22
|
-
getTableSummaryInfo: () => () =>
|
|
22
|
+
getTableSummaryInfo: () => () => JSX.Element;
|
|
23
23
|
handledynamicColumns: (col: any[]) => any[];
|
|
24
24
|
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
25
|
-
ResizeableTitle: (props: any) =>
|
|
25
|
+
ResizeableTitle: (props: any) => JSX.Element;
|
|
26
26
|
getTableScrollXWidth: (cols: any[]) => any;
|
|
27
27
|
/**
|
|
28
28
|
* 处理行点击事件
|
|
@@ -30,5 +30,5 @@ export default class ColumnSettingSulaTable extends React.Component {
|
|
|
30
30
|
*/
|
|
31
31
|
handleRowClick: (record: any) => void;
|
|
32
32
|
recalculateSummary: (nextProps: any) => void;
|
|
33
|
-
render():
|
|
33
|
+
render(): JSX.Element;
|
|
34
34
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
/**
|
|
3
2
|
* 非空数组
|
|
4
3
|
* @param arr 要判断的数据
|
|
@@ -6,5 +5,5 @@ import React from 'react';
|
|
|
6
5
|
*/
|
|
7
6
|
export declare const noEmptyArray: (arr: any[]) => boolean;
|
|
8
7
|
export declare const getItemDefaultWidth: (item: any) => number;
|
|
9
|
-
export declare const handleTextOverflow: (text: string | undefined, width?: number) =>
|
|
8
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
10
9
|
export declare const getShowColumns: (originColumns: any[], configs: any[]) => any[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export interface ParagraphCopierProps {
|
|
|
4
4
|
text: string;
|
|
5
5
|
enableHover?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const ParagraphCopier: (props: ParagraphCopierProps) =>
|
|
7
|
+
declare const ParagraphCopier: (props: ParagraphCopierProps) => JSX.Element;
|
|
8
8
|
export default ParagraphCopier;
|
|
@@ -25,5 +25,5 @@ interface IProps {
|
|
|
25
25
|
ellipsis?: ellipsisProps;
|
|
26
26
|
}
|
|
27
27
|
export type SectionProps = PropsWithChildren<IProps>;
|
|
28
|
-
declare const Section: ({ children, copyable, label, icon, ellipsis, }: SectionProps) =>
|
|
28
|
+
declare const Section: ({ children, copyable, label, icon, ellipsis, }: SectionProps) => JSX.Element;
|
|
29
29
|
export default Section;
|
|
@@ -137,10 +137,10 @@ declare class DataImport extends React.Component {
|
|
|
137
137
|
toggleData: () => void;
|
|
138
138
|
onChange: (e: any) => void;
|
|
139
139
|
errorChange: (e: any) => void;
|
|
140
|
-
menuList:
|
|
141
|
-
leftMenu:
|
|
140
|
+
menuList: JSX.Element;
|
|
141
|
+
leftMenu: JSX.Element;
|
|
142
142
|
getSheetMap: () => {};
|
|
143
143
|
importExcelToLuckySheet: (resultData: any) => void;
|
|
144
|
-
render():
|
|
144
|
+
render(): JSX.Element;
|
|
145
145
|
}
|
|
146
146
|
export default DataImport;
|
|
@@ -141,16 +141,16 @@ declare class DataValidation extends React.Component {
|
|
|
141
141
|
naturalCompare: (a: any, b: any) => any;
|
|
142
142
|
customSort: (a: any, b: any) => any;
|
|
143
143
|
sortData: (sorterKey: string) => void;
|
|
144
|
-
resetData: () => void
|
|
144
|
+
resetData: () => Promise<void>;
|
|
145
145
|
filterData: (type: string) => void;
|
|
146
146
|
toggleData: () => void;
|
|
147
147
|
onChange: (e: any) => void;
|
|
148
148
|
errorChange: (e: any) => void;
|
|
149
|
-
menuList:
|
|
150
|
-
leftMenu:
|
|
151
|
-
getSortList: () =>
|
|
149
|
+
menuList: JSX.Element;
|
|
150
|
+
leftMenu: JSX.Element;
|
|
151
|
+
getSortList: () => JSX.Element;
|
|
152
152
|
getSheetMap: () => {};
|
|
153
153
|
importExcelToLuckySheet: (resultData: any) => void;
|
|
154
|
-
render():
|
|
154
|
+
render(): JSX.Element;
|
|
155
155
|
}
|
|
156
156
|
export default DataValidation;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface exportIconType {
|
|
3
2
|
/** others选填,使用axios发请求,*/
|
|
4
3
|
request: {
|
|
@@ -9,5 +8,5 @@ interface exportIconType {
|
|
|
9
8
|
/** BsSulaQueryTable的tableRef*/
|
|
10
9
|
tableRef: any;
|
|
11
10
|
}
|
|
12
|
-
declare const ExportIcon: ({ request: exportRequest, tableRef, allowSelect, columnsRowKey }: exportIconType) =>
|
|
11
|
+
declare const ExportIcon: ({ request: exportRequest, tableRef, allowSelect, columnsRowKey }: exportIconType) => JSX.Element;
|
|
13
12
|
export default ExportIcon;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
declare const QueryMutipleInput: ({ onValueChange, onPressEnter, value: initialValue }: {
|
|
4
3
|
onValueChange: any;
|
|
5
4
|
onPressEnter: any;
|
|
6
5
|
value: any;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => JSX.Element;
|
|
8
7
|
export default QueryMutipleInput;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
export declare const getValue: (value: any, selectMode?: any) => any;
|
|
4
|
-
declare const QueryMutipleSearchSelect: ({ onValueChange, requestConfig, selectProps, ctx }: any) =>
|
|
3
|
+
declare const QueryMutipleSearchSelect: ({ onValueChange, requestConfig, selectProps, ctx }: any) => JSX.Element;
|
|
5
4
|
export default QueryMutipleSearchSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare const SearchSelect: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const SearchSelect: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default SearchSelect;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE = 100;
|
|
2
|
+
export declare const SEARCH_SELECT_MODAL_PAGE_SIZE_OPTIONS: number[];
|
|
3
|
+
export declare const SEARCH_SELECT_MODAL_PAGE_SIZE_CACHE_KEY = "businessComponentSearchSelectPageSize";
|
|
4
|
+
/**
|
|
5
|
+
* 规范化选择器弹窗分页大小,缓存异常时统一回退到每页 100 条。
|
|
6
|
+
*
|
|
7
|
+
* @param pageSize 待校验的分页大小
|
|
8
|
+
* @returns 合法的分页大小
|
|
9
|
+
*/
|
|
10
|
+
export declare const normalizeSearchSelectModalPageSize: (pageSize: unknown) => number;
|
|
11
|
+
/**
|
|
12
|
+
* 读取所有选择器弹窗共用的分页大小。
|
|
13
|
+
*
|
|
14
|
+
* @returns 缓存中的分页大小,无有效缓存时返回每页 100 条
|
|
15
|
+
*/
|
|
16
|
+
export declare const getSearchSelectModalPageSize: () => number;
|
|
17
|
+
/**
|
|
18
|
+
* 保存所有选择器弹窗共用的分页大小。
|
|
19
|
+
*
|
|
20
|
+
* @param pageSize 用户选择的分页大小
|
|
21
|
+
*/
|
|
22
|
+
export declare const setSearchSelectModalPageSize: (pageSize: unknown) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import React from 'react';
|
|
3
2
|
export declare const columnsPerRow = 4;
|
|
4
3
|
export declare const ColSpan = 6;
|
|
5
4
|
export declare const handleSourceName: (sName: any) => any;
|
|
@@ -24,7 +23,7 @@ export declare const convertUrlQueryParams: (params: any) => string;
|
|
|
24
23
|
export declare const convertBodyParams: (params: any) => any;
|
|
25
24
|
export declare const convertResData: (requestConfig: any, res: any, selectProps: any) => any;
|
|
26
25
|
export declare const handleSelectOptionsShowValue: (specialBracket: boolean, noNeedSplit: boolean, item: any) => any;
|
|
27
|
-
export declare const LightHeightOption: (props: any) =>
|
|
28
|
-
export declare const maxTagPlaceholder: (selectedValues: any, { selectProps, onChange, value, setIsMaxTagsOpen }: any) =>
|
|
26
|
+
export declare const LightHeightOption: (props: any) => JSX.Element;
|
|
27
|
+
export declare const maxTagPlaceholder: (selectedValues: any, { selectProps, onChange, value, setIsMaxTagsOpen }: any) => JSX.Element;
|
|
29
28
|
export declare const handleTableColumns: (tableColumns: any) => any;
|
|
30
29
|
export declare const getShowStr: ({ viewShowValueStr, labelInValue, selectMode, value, items }: any) => any;
|
package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const App: ({ setValue, formula, record, sourceData, disabled }: {
|
|
3
2
|
setValue: any;
|
|
4
3
|
record: any;
|
|
5
4
|
sourceData: any;
|
|
6
5
|
formula?: any;
|
|
7
6
|
disabled?: boolean | undefined;
|
|
8
|
-
}) =>
|
|
7
|
+
}) => JSX.Element;
|
|
9
8
|
export default App;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface Iprops {
|
|
3
2
|
disabled: boolean;
|
|
4
3
|
inputType: number;
|
|
@@ -8,5 +7,5 @@ interface Iprops {
|
|
|
8
7
|
onChange: any;
|
|
9
8
|
dictionaryCode?: string;
|
|
10
9
|
}
|
|
11
|
-
declare const _default: (props: Iprops) =>
|
|
10
|
+
declare const _default: (props: Iprops) => JSX.Element;
|
|
12
11
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function RenderCompItem(props: any): React.JSX.Element | undefined;
|
|
1
|
+
export default function RenderCompItem(props: any): JSX.Element | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,11 @@ export { default as EllipsisTooltip } from './components/Functional/EllipsisTool
|
|
|
33
33
|
export * from './components/Functional/BsAntdSula/index';
|
|
34
34
|
export { default as RuleComponent } from './components/Solution/RuleComponent';
|
|
35
35
|
export { default as RuleSetter } from './components/Solution/RuleSetter';
|
|
36
|
+
export { default as RenderCompItem } from './components/Solution/RuleComponent/RenderCompItem';
|
|
37
|
+
export { default as TrialCalculation } from './components/Business/TrialCalculation';
|
|
38
|
+
export { processDetailButtonsVisible as processDetailButtonsVisible } from './components/Business/DetailPageWrapper';
|
|
36
39
|
export { default as ExtendedCollapse } from './components/Common/ExtendedCollapse';
|
|
37
40
|
export { default as Section } from './components/Common/Section';
|
|
38
41
|
export { default as ParagraphCopier } from './components/Common/ParagraphCopier';
|
|
42
|
+
export { default as SystemLog } from './components/Business/SystemLog';
|
|
43
|
+
export * from './components/Business/ImportExport';
|